corpetty/py-etherscan-api

Documentations - API etherscan

gg4u opened this issue · 2 comments

gg4u commented

How to query for token holders (e.g.
https://etherscan.io/token/tokenholderchart/?range=500)

and by address
https://etherscan.io/address/

Currently, the Etherscan API does not allow for querying of token holders, as can be seen from their API documentation here: https://etherscan.io/apis#tokens.

They newer version of the token API deprecated the way the package currently works. I'll refactor it to account for their changes and then you'll be able to query an address' balance with respect a particular token as long as you also know the token's smart contract address. I'll reference the PR when I merge it in.

recent commit changed to allow getting address balances from a token contract. See the /examples/tokens folder for examples.