Skip to main content

Python SDK

The yativo-crypto-sdk package provides a Pythonic interface to the Yativo Crypto API with snake_case methods, a structured exception hierarchy, and automatic token refresh on 401 responses. PyPI version PyPI downloads

Installation

Package: yativo-crypto-sdk · Latest: 1.0.1 · Requirements: Python 3.8 or higher.

Quick Start


Constructor Parameters


Authentication (sdk.auth)

Register

Login (Passwordless)

Login is passwordless. Call login(email) to send an OTP to the user, then call verify_otp(otp, email) to complete authentication.

2FA Setup (Google Authenticator)

Passkey (WebAuthn) Auth

Exchange API Key for Bearer Token


Accounts (sdk.accounts)


Assets / Wallets (sdk.assets)

Create a Wallet

Batch Create Wallets

List Wallets

Check Balance


Transactions (sdk.transactions)

Send Funds (with Idempotency)

Estimate Gas Fee

List Transactions

Get a Transaction


Swap (sdk.swap)


Cards (sdk.cards)

Onboard a Cardholder

Create a Virtual Card

Get Card Funding Address

Get Card Transactions


Webhooks (sdk.webhooks)

Create a Webhook

Verify a Webhook Signature

List / Delete Webhooks


API Keys (sdk.api_keys)


Auto-Forwarding (sdk.auto_forwarding)

Auto-forwarding rules automatically sweep incoming deposits to a destination address.

Customers (sdk.customers)


Analytics (sdk.analytics)


IBAN (sdk.standalone_iban)

You must pass standalone_iban_enabled=True to the constructor to use this resource.

Exception Handling

Exception Hierarchy


Async Support

The synchronous client is recommended for most use cases. An async variant is available for high-throughput applications running on an event loop (FastAPI, asyncio).

Django / Flask Integration Example