Etherscan.io API wrapper
An Etherscan.io API wrapper, for Python.
With a default cache supported by requests-cache
Installation
pip3 install etherscan
Usage
import etherscan
es = etherscan.Client(
api_key='YOUR_API_KEY',
cache_expire_after=5,
)
eth_price = es.get_eth_price()
eth_supply = es.get_eth_supply()
eth_balance = es.get_eth_balance('0x39eB410144784010b84B076087B073889411F878')
eth_balances = es.get_eth_balances([
'0x39eB410144784010b84B076087B073889411F878',
'0x39eB410144784010b84B076087B073889411F879',
])
gas_price = es.get_gas_price()
block = es.get_block_by_number(block_number=12345)
transactions = es.get_transactions_by_address('0x39eB410144784010b84B076087B073889411F878')
token_transations = es.get_token_transactions(
contract_address='0xEF68e7C694F40c8202821eDF525dE3782458639f',
address='0xEF68e7C694F40c8202821eDF525dE3782458639f',
)
Release files for etherscan 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| etherscan-0.3.0.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| etherscan-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.0 kB
Release files / etherscan-0.3.0.tar.gz
| Download URL | etherscan-0.3.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
366e3625d74cc0557ea6119d31a9b5ac199b08c4b6a00b82a3e9e21d974485c7
|
|
BLAKE2b-256 checksum How to use checksums |
eeb1eaf7e5c556f6303ffc323312f8a08c908cbfcbb49640e91f263dc5a481d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.3
|
Release files / etherscan-0.3.0-py3-none-any.whl
| Download URL | etherscan-0.3.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3163cdbceba8728e852989dafd0c56e0421e60f16a1199137edb100d427ff5e7
|
|
BLAKE2b-256 checksum How to use checksums |
e547d3f32bd1cdd503ad465a9b41b7229e1accdb5df1d1af5bf56c5cccda28dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.3
|