Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1 KB

File metadata and controls

60 lines (41 loc) · 1 KB

Alchemy Python SDK

A Python SDK for the Alchemy API, built with requests and pydantic for type-safe API interactions.

Installation

pip install alchemy-python-sdk

Or install from source:

pip install -e .

Quick Start

from alchemy import Client

client = Client(api_key="your_api_key_here", network=Network.ETH)

balances = client.token.get_token_balances("address")
print(balances)

Features

  • 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

Usage Examples

Development

TODO

  • Token API
  • NFT API
  • Portfolio API
  • Transfers API
  • Prices API
  • Simulation API
  • Utility API

Install development dependencies

pip install -e ".[dev]"

Run tests

pytest

License

Apache License 2.0