pcko1 / etherscan-python

A minimal, yet complete, python API for Etherscan.io.
MIT License
406 stars 112 forks source link

token's circulating supply #10

Closed al-matty closed 3 years ago

al-matty commented 3 years ago

I didn't see a way to get a token's circulating supply, did I just miss it?

github-actions[bot] commented 3 years ago

Thanks for reporting this issue, we are on it :)

pcko1 commented 3 years ago

hi @al-matty, that should be get_total_supply_by_contract_address (example) :)

al-matty commented 3 years ago

Wow, thanks for your work. Since I'm new to this, what'd be the best way to dive into the usage of etherscan-python?

pcko1 commented 3 years ago

hmm I would say you should brainstorm about how a blockchain explorer, such as Etherscan, could be of help to you and what kind of projects you can build based on the data you download from there. Then, you can visit the API (this package) and see what types of data are actually available and how you can adjust them to the needs of your project (or maybe how to adjust the project to the types of data that you have access to). Be mindful though, Etherscan allows for 5 queries per second, so try to be mindful with your queries otherwise you might end up getting temporarily restricted from accessing it :)

You can find examples about the data that each function returns here, I hope it is of help.

al-matty commented 3 years ago

That's perfect, thanks.