A Python SDK for the Alchemy API, built with requests and pydantic for type-safe API interactions.
pip install alchemy-python-sdkOr install from source:
pip install -e .from alchemy import Client
client = Client(api_key="your_api_key_here", network=Network.ETH)
balances = client.token.get_token_balances("address")
print(balances)- Type-safe models: All request and response models are defined using Pydantic for automatic validation
- Error handling: Proper exception handling for common API errors (401, 404, 400, etc.)
- Bearer token authentication: Simple API key-based authentication
- Token API
- NFT API
- Portfolio API
- Transfers API
- Prices API
- Simulation API
- Utility API
pip install -e ".[dev]"pytestApache License 2.0