Aioetherscan
Etherscan API async Python wrapper
Install / Use
/learn @ape364/AioetherscanREADME
aioetherscan
Etherscan.io API async Python non-official wrapper.
Features
API modules
Supports all API modules:
Also provides extra module, which supports:
linkhelps to compose links to address/tx/etccontracthelps to fetch contract datageneratorsallows to fetch a lot of transactions without timeouts and not getting banned
Blockchains
Supports blockchain explorers:
Installation
pip install -U aioetherscan
Usage
Register Etherscan account and create free API key.
import asyncio
import logging
from aiohttp_retry import ExponentialRetry
from asyncio_throttle import Throttler
from aioetherscan import Client
logging.basicConfig(format='%(asctime)s - %(message)s', level=logging.INFO)
async def main():
throttler = Throttler(rate_limit=4, period=1.0)
retry_options = ExponentialRetry(attempts=2)
c = Client('YourApiKeyToken', throttler=throttler, retry_options=retry_options)
try:
print(await c.stats.eth_price())
print(await c.block.block_reward(123456))
address = '0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2'
async for t in c.extra.generators.token_transfers(
address=address,
start_block=19921833,
end_block=19960851
):
print(t)
print(c.extra.link.get_tx_link(t['hash']))
print(c.extra.link.get_address_link(address))
finally:
await c.close()
if __name__ == '__main__':
asyncio.run(main())
Related Skills
node-connect
351.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
110.7kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
110.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
351.4kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
