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=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',
)
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.2.2.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for etherscan-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d38b9d46744832aabbc2496aef5c81b0379d16d78d2f6ef4c385a8f3f42654a |
|
MD5 | 0dfa892f0f7ff20dd5aae88165dfd8ee |
|
BLAKE2b-256 | 495d42494681842140b2fac16506f87c48c76d01543174c98080a2ab8c97e6ee |