2

Several airdrops are coming in these days. One doesn't know which tokens are gifted to them. How can I retrieve all tokens owned by a particular account? I know how to retrieve token balance, by providing token contract name and account name. The scatter web extension shows all tokens and its balance. How do they do it?

1

Attually, they have a list token name with token'account.

You can refer here: https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/tokens.json

| improve this answer | |
  • But I just want to know which tokens are gifted to me during airdrops. Question edited – Blockchain Experts Aug 23 '18 at 9:58
  • Yes, they've checked the list popular token with your account. – Quoc Le Aug 23 '18 at 10:05
  • What if the token is not popular? Is there any other way to query it? – Blockchain Experts Aug 23 '18 at 10:13
  • You should know the account name who was created that token. I've check eosio.token source code, the structure is accounts accountstable( _self, owner ); .That mean, we need contract name, and account owner to quere data – Quoc Le Aug 23 '18 at 10:32
1

Here is example: i want to check token with this account name "bitfinexeos1"

I should check it with each contract name : eosio.token, eosadddddddd, eosdactokens, eoxeoxeoxeox ... from the link https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/tokens.json

─$ cleos -u https://mainnet.genereos.io get table eosio.token bitfinexeos1

accounts { "rows": [{ "balance": "52996.0725 EOS" } ], "more": false }

─$ cleos -u https://mainnet.genereos.io get table eosadddddddd bitfinexeos1

accounts { "rows": [{ "balance": "110.0768 ADD" } ], "more": false }

$ cleos -u https://mainnet.genereos.io get table eosdactokens bitfinexeos1

accounts { "rows": [], "more": false }

| improve this answer | |

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.