Etherscan.io API wrapper
Project description
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=3,
)
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
etherscan-0.1.4.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for etherscan-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eace00469ece93b8beabd1eea7f3d8074f9e08a849df15f9c154990286b9ede8 |
|
MD5 | a6d35118f46e365cb93009ddfd5f9fea |
|
BLAKE2b-256 | 677ebfd3a6489250a73083e1a37e3f13e9b0be7c671f5a2ddd7b5a1ee824072e |