A fully typed, validated async client for the Etherscan API.
from typed_etherscan import Etherscan
async with Etherscan.new() as client: # reads ETHERSCAN_API_KEY from the environment
balance = await client.account.balance(address='0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae')
print(balance)
Why Typed Etherscan?
- 🎯 Precise Types:
Literalrequest parameters (module,action,closest, ...) so a typo is caught before the call leaves your machine. - ✅ Runtime Validation: every response is validated against Etherscan's own
status/message/resultenvelope by default. - ⚡ Async First: async HTTP built on
httpx, with a client-side rate limit for Etherscan's strict free-tier cap. - 📚 Full Surface: all 88 documented Etherscan V2 endpoints — account, blocks, contracts, gas tracker, logs, raw proxy RPC, stats, tokens, transactions, and usage — across every chain the V2 API supports.
Installation
pip install typed-etherscan
Documentation
- API Keys Setup — get an Etherscan API key and configure it
- How To — task-focused guides for common queries
- Reference — error handling, environment variables, async usage, timestamps
License
MIT — see LICENSE.
Metadata
Release files for typed-etherscan 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| typed_etherscan-0.4.1.tar.gz | 45.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| typed_etherscan-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 189.7 kB
Release files / typed_etherscan-0.4.1.tar.gz
| Download URL | typed_etherscan-0.4.1.tar.gz |
|---|---|
| Size | 45.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12add79c85e96a30dc93f525ab06d5705d12c667fa79f3374bab30dc7ae6c5de
|
|
BLAKE2b-256 checksum How to use checksums |
ef8440f32985463f1c8df036ceec098ef4b963040a4e94c6bc0718668a185482
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.
Transparency logRelease files / typed_etherscan-0.4.1-py3-none-any.whl
| Download URL | typed_etherscan-0.4.1-py3-none-any.whl |
|---|---|
| Size | 143.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a77a3925a5b9aceee2a7c12245e4a158d8223754ad5225a494ce1319e46588b
|
|
BLAKE2b-256 checksum How to use checksums |
fbcb33850fab753e1c7aa6d99d5c6fa46bae9cd93b69321b86461b4da3eb09a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.
Transparency log