realtps icon indicating copy to clipboard operation
realtps copied to clipboard

ICP numbers are probably incomplete

Open brson opened this issue 2 years ago • 3 comments

ICP is using https://rosetta-api.internetcomputer.org for its data. The numbers appear to reflect "ICP transactions" on https://dashboard.internetcomputer.org/, but is nowhere near the ~4800 tps that website claims. Probably these numbers aren't accounting for cannister messages.

Previous discussion: https://github.com/Aimeedeer/realtps/issues/41

brson avatar Nov 04 '22 20:11 brson

+1 These are only the ICP token transactions - a very small part of the messages on the Internet Computer.

domwoe avatar Nov 05 '22 10:11 domwoe

@brson since you're already trusting https://rosetta-api.internetcomputer.org/ for its data, why not trust https://ic-api.internetcomputer.org/ ? The metrics you are looking for are present there today: https://ic-api.internetcomputer.org/api/v3/swagger

I do agree it's a bit "centralized" in a sense that you do have to trust internetcomputer.org that it provides you valid data, but we are actively working on adding more metrics in a trustworthy and decentralized manner. It’s a tough problem so may take a bit of time. But in the meantime you should be able to use the metrics endpoint above and then switch to the new decentralized metrics when they become available. WDYT?

sasa-tomic avatar Nov 15 '22 09:11 sasa-tomic

@sasa-tomic This project is structured to load blocks, count the transactions in them, and average them over time. That is the single thing this project does.

While I would prefer to always go to a node that participates directly in the network to get that information, secondary aggregators like Rosetta, if they can provide blocks, timestamps, and transactions, are ok at the moment.

brson avatar Nov 21 '22 02:11 brson