Yativo Crypto SDK - Python
Official Python SDK for the Yativo Crypto Platform. Accept and move USDC on Solana and USDC on XDC with a few lines of Python.
Installation
pip install yativo-crypto-sdk
Quick Start
from yativo import YativoSDK
# Initialize SDK
yativo = YativoSDK(base_url="https://crypto-api.yativo.com")
# --- Authentication (passwordless) ---
# Step 1: Request OTP — sends a one-time code to the user's email
yativo.auth.login(email="user@example.com")
# Step 2: Verify OTP — returns access token if 2FA is not enabled
response = yativo.auth.verify_otp(otp="123456", email="user@example.com")
# Step 2b: If the account has 2FA enabled, verify the authenticator code instead
response = yativo.auth.verify_2fa(code="654321", email="user@example.com")
# Step 2c: Or authenticate with a passkey
options = yativo.auth.passkey_options(email="user@example.com")
# ... complete WebAuthn ceremony client-side, then:
response = yativo.auth.passkey_verify(data=options)
# Alternatively, authenticate with an API key + secret (server-to-server)
response = yativo.auth.get_token(
api_key="yat_your_api_key",
api_secret="your_api_secret"
)
# --- USDC on Solana ---
account = yativo.accounts.create(account_name="My Account")
sol_wallet = yativo.assets.create(
account_id=account["account"]["account_id"],
chain="solana",
ticker="USDC_SOL"
)
print(f"Solana deposit address: {sol_wallet['asset']['wallet_address']}")
# Send USDC on Solana (~2-5 second finality)
yativo.transactions.send(
from_asset_id=sol_wallet["asset"]["asset_id"],
to_address="RecipientSolanaAddressHere",
amount="10.00",
chain="solana",
ticker="USDC_SOL"
)
# --- USDC on XDC ---
xdc_wallet = yativo.assets.create(
account_id=account["account"]["account_id"],
chain="xdc",
ticker="USDC_XDC"
)
print(f"XDC deposit address: {xdc_wallet['asset']['wallet_address']}")
# Send USDC on XDC (~2 second finality, ultra-low fees)
tx = yativo.transactions.send(
from_asset_id=xdc_wallet["asset"]["asset_id"],
to_address="xdcRecipientAddressHere",
amount="50.00",
chain="xdc",
ticker="USDC_XDC"
)
print(f"Transaction hash: {tx['transaction']['tx_hash']}")
Supported Assets
| Asset | Chain | Use case |
|---|---|---|
| USDC_SOL | Solana | Fast consumer payments, ~2–5 sec finality |
| USDC_XDC | XDC Network | Enterprise payments, ~2 sec finality, near-zero fees |
Features
- ✅ USDC on Solana and XDC
- ✅ Passwordless auth — OTP, 2FA (TOTP), and passkey
- ✅ Full type hints
- ✅ Automatic token refresh
- ✅ Webhook verification
- ✅ Comprehensive error handling
Documentation
See the Yativo API docs for the full API reference.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yativo_crypto_sdk-1.0.1.tar.gz
(17.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yativo_crypto_sdk-1.0.1.tar.gz.
File metadata
- Download URL: yativo_crypto_sdk-1.0.1.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a7e0d23b56735d0d3ac8aad68e925467b1e3ad18dfc626386f78a663cb6b924
|
|
| MD5 |
efba8aed27b6c4958e0665f4c52ce6a0
|
|
| BLAKE2b-256 |
1f4fef0b74ed218697457b11d7868b0f701b1cb8774550545f5823a713afe9df
|
File details
Details for the file yativo_crypto_sdk-1.0.1-py3-none-any.whl.
File metadata
- Download URL: yativo_crypto_sdk-1.0.1-py3-none-any.whl
- Upload date:
- Size: 21.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
154c0bcb94c5a8183b80fdbccc116757b79cdc6ae28943726f86f502d63193b9
|
|
| MD5 |
482ddbcd50b35a90a7d83afa4c171a2c
|
|
| BLAKE2b-256 |
aebe155c7c77a38f3f723bd74e3b95d58125d857a3d358ec82f8d502de90cdbe
|