Typed Alchemy
A fully typed, validated async client for the Alchemy API.
from alchemy import Alchemy
async with Alchemy.new() as client:
prices = await client.prices.by_symbol(symbols=['ETH', 'BTC'])
transfers = await client.transfers('ethereum').get_asset_transfers({
'fromBlock': '0x0',
'toAddress': '0x5c43B1eD97e52d009611D89b74fA829FE4ac56b1',
'category': ['external'],
'maxCount': '0x2',
})
Why Typed Alchemy?
- 🎯 Precise Types: Typed endpoint inputs and responses.
- ✅ Runtime Validation: Validated responses by default.
- âš¡ Async First: Built for concurrent HTTP workflows.
- 📚 Full API Surface:
client.portfolio,client.prices,client.nft('ethereum'), etc.
Installation
How To
- API Keys Setup
- Look Up Token Prices
- Inspect Wallet Portfolio
- Query NFTs
- Get Asset Transfers
- Paginate Through Results