Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

How to iterate all token holders #5794

Closed
chuang39 opened this issue Sep 24, 2018 · 4 comments
Closed

How to iterate all token holders #5794

chuang39 opened this issue Sep 24, 2018 · 4 comments
Assignees
Labels

Comments

@chuang39
Copy link

For the contract like contracts/eosio.token, account is sharded and recorded by using user's name as scope. If I would like to find all holders for the token, how to iterate through accounts or how to iterate difference scopes? Thanks a lot!

Link for the contract eosio.token.
https://github.com/EOSIO/eos/tree/master/contracts/eosio.token

@csquan
Copy link

csquan commented Sep 26, 2018

how?same problem?

@taokayan
Copy link
Contributor

Yes, please upgrade to the latest version first. you can use "cleos get scope" with lower bound to iterator all possible scope inside a contract. Please quote the account name with a space as prefix, like: ./cleos get scope eosio.token -L " 555555555555"

@taokayan
Copy link
Contributor

taokayan commented Oct 4, 2018

solved in #5486

@taokayan taokayan closed this as completed Oct 4, 2018
@mschoenebeck
Copy link

in the current version of eosio (2.1.0-1) cleos get scope is not available anymore. How to get all scopes/shards of a table?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants