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.

Metadata

Release files for typed-etherscan 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for typed-etherscan 0.4.0
File Size Uploaded
typed_etherscan-0.4.0.tar.gz 45.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for typed-etherscan 0.4.0
File Interpreter ABI Platform
typed_etherscan-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 189.7 kB

Release files / typed_etherscan-0.4.0.tar.gz

Download URL typed_etherscan-0.4.0.tar.gz
Size 45.8 kB
Tags Source
SHA-256 checksum
How to use checksums
423b74744ff506ae7fa8fadda9f5f15fa361372ae2f644acfde12f7a7376d0ad
BLAKE2b-256 checksum
How to use checksums
ae840c0f9923ed53509b28a5b0ef9bbf9f5605041c85c4282e9394a471d39b0d
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 10, 2026.

Transparency log

Release files / typed_etherscan-0.4.0-py3-none-any.whl

Download URL typed_etherscan-0.4.0-py3-none-any.whl
Size 143.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
42e30168d4d0e38653b9dc95f45b854e429cca7a3270fcb4860ba19b4e8ef34a
BLAKE2b-256 checksum
How to use checksums
b40304dc21d5a88b7511bb22d5951d3833c586a252df31ee359d341473aacdeb
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 10, 2026.

Transparency log

Release history Release notifications | RSS feed

0.4.1

2 release files

This release

0.4.0 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page