Skip to main content

Typed Etherscan

A fully typed, validated async client for the Etherscan API.

PyPI version Python versions Docs License

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: Literal request 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/result envelope 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

typed_etherscan-0.3.1.tar.gz (32.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

typed_etherscan-0.3.1-py3-none-any.whl (118.9 kB view details)

Uploaded Python 3

File details

Details for the file typed_etherscan-0.3.1.tar.gz.

File metadata

  • Download URL: typed_etherscan-0.3.1.tar.gz
  • Upload date:
  • Size: 32.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for typed_etherscan-0.3.1.tar.gz
Algorithm Hash digest
SHA256 f05b8b4a915defadd5c64ffa1e05c7d8a68f5ae0c9a14d5f43ab65bbf5af25ad
MD5 a7d9e87f1bc84b2f84b51a717b14bbe1
BLAKE2b-256 043c4046243d289c8c9ff43d9e5a7b5f1a27d032f5830a708aa6e7dac7c7ca4a

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_etherscan-0.3.1.tar.gz:

Publisher: release-etherscan.yml on tribulnation/typed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file typed_etherscan-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: typed_etherscan-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 118.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for typed_etherscan-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ce2b9cbf3cbe4cb827c64ca3f0dfc2c83b519fecf959caed6ebdfefcbac88a6d
MD5 e20684e7840dfd27be0467a67d9c9b82
BLAKE2b-256 19f2700764835f0b5b41693c97706d376af89f675f90f957461a7f66c6fa681d

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_etherscan-0.3.1-py3-none-any.whl:

Publisher: release-etherscan.yml on tribulnation/typed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page