EtherScan.io API python bindings
This module is written as an effort to provide python bindings to the EtherScan.io and Snowtrace.io APIs, which can be found at:
In order to use this, you must attain a user account, and generate an API key with the appropriate service and provide at runtime, which can be found at the Etherscan.io API website.
If you'd like to use the provided examples without altering them, then the JSON file api_key.json
must be stored in
the base directory. Its format is as follows:
{
"key_etherscan" : "YourApiKeyToken",
"key_snowtrace" : "YourApiKeyToken"
}
with YourApiKeyToken
is your provided API key token from EtherScan.io and Snowtrace.io respectively.
To install the package to your computer, simply run the following command in the base directory:
python3 -m pip install py-etherscan-api
Currently, only the following Etherscan.io API modules are available:
- accounts
- contracts
- stats
- tokens
- proxies
- blocks
- transactions
- tokens
The remaining available modules provided by Etherscan.io and Snowtrace.io will be added eventually...
Currently, this works for the following networks:
- Ethereum: Mainnet, Ropsten
- Avalanche: Mainnet, Fuji
All possible calls have an associated example file in the examples folder to show how to call the binding
These of course will be fleshed out with more details and explanation in time
Jupyter notebooks area also included in each directory to show all examples
- Figure out a roadmap
BTC: 16Ny72US78VEjL5GUinSAavDwARb8dXWKG
ETH: 0x5E8047fc033499BD5d8C463ADb29f10f11165ed0