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.0.tar.gz (32.1 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.0-py3-none-any.whl (118.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: typed_etherscan-0.3.0.tar.gz
  • Upload date:
  • Size: 32.1 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.0.tar.gz
Algorithm Hash digest
SHA256 2a204c20cc8b57a040de30e698d25439a9cc529240d4a0ae869f0c02e32d3265
MD5 36373c2a1e458f2a3dd8dfd8337adf3e
BLAKE2b-256 31cd46c7c6910ebe82aa0e53164ff94dd13c5496640fd20356c1770f5a21c007

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_etherscan-0.3.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: typed_etherscan-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 118.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 13c306624eb1245bf5765b0c527c1ea8eabc0d9fd63ab668bba8c9fdc894d303
MD5 3a8d5bb236d68b4961126f6b41937613
BLAKE2b-256 757836ef57560e110a3ed44c6025ccf85b6f33170cf54171eb2fe02f5c65da51

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_etherscan-0.3.0-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

0.3.1

2 files

This release

0.3.0 This release

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