0

I see eosflare.io can list accounts that has transactions/actions with a specific smart contract. How?

For example, here is eosflare.io's list of all DICE token holders: https://eosflare.io/token/betdicetoken/DICE

Here is the list of RIDL token holders: https://eosflare.io/token/ridlridlcoin/RIDL

They even have them ranked! Is this possible via RPC API or they are doing it by storing all the actions in a database and then producing a nice report from it?

  • I suppose they fetch holder stats from the token contracts, not list of accounts that have interacted with the contract. – Yaroslav Jan 21 at 8:16
  • Any way to get a list of "holders" for a given smart contract? – Kabir Jan 22 at 17:37
0

If the token contracts just fetch holder stats from the token, the only way reporting is possible is by keeping track of every transactions occurring related to the smart contract.

Using RPC API should be theoretically possible to keep track for blocks but Nodeos has a nicer and more realistic solution for that which is storing the blocks in MongoDB where you can look up the data much faster without passing through the network every time.

  • I am actually building a JSON API for all things EOS data for non-blockchain developers and yes I am going to store data in RDBMs. – Kabir Jan 26 at 3:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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