Python SDK
The Sardis Python SDK provides a simple, Pythonic interface for integrating Sardis payment capabilities into your AI agents and applications.Installation
Quick Install (Simulation Mode)
For prototyping and testing without API credentials:Production Install
For production use with full API access:Quick Start
Simulation Mode
Perfect for prototyping - no API key required, all operations run locally:Production Mode
For real transactions on mainnet/testnet:Client Initialization
Basic Configuration
With Custom Retry Configuration
With Custom Timeout Configuration
Context Manager Pattern
Recommended for automatic resource cleanup:Basic Operations
Agent Management
Wallet Operations
Payment Execution
Hold Operations (Pre-Authorization)
Group Management
Manage multiple agents with shared budgets:Ledger Queries
Supported Chains & Tokens
Available Chains
Available Tokens
Error Handling
See Error Handling for comprehensive error handling patterns.Async Usage
See Async Patterns for async/await usage withAsyncSardisClient.