5

The ownership distribution of Iota has been written about but HOW does one get these addresses? I looked at the Iota API and dont see an obvious way. And the tangle seems like some of it is in binary files on my node but it is not every transaction. Can anyone point me in the right direction?

And while I am asking - I am looking to determine the number of transactions on the network, the average speed, and the number of nodes on the network through time. I know TheTangle.org has a lot of this as well but I have no idea about how to compile that data myself. I am assuming finding out how to do one of these things will reveal how to do the others.

6

Basically there are three ways to get to the data (depending on what you want):

  • Query the API of your node to find transactions and walk along them. This might be slow (depending on what you are looking for), but the API is well-documented and you can walk the tangle quite easily.

  • Directly query the node's database (which is a RocksDB instance) for what you need. This is probably the fastest way (from CPU time perspective) but can be frustrating as the database structure is not documented and there are a few quirks here and there which are usually handled by iri but you'd have to handle them yourselves this way.

  • Write an IRI Extension module (IXI) that collects the data you need and aggregates it. This is mainly useful if you want to aggrenate data in a way that the full node already has code for (e. g. Snapshot.ixi, which is used as base for address distribution statistics)

All these ways will give you all kind of information about the tangle, transactions stored therein and address balances. You won't get information about full nodes or number of "real users" that way, though.

Also, the information stored in the tangle will stop at the last snapshot (which was in November). As there are no public permanodes so far, the only way to get older transaction data is to download old IRI databases, import them into the corresponding iri version and re-run your gathering task against those nodes (in the hope that the API did not change too much in between).

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.