Skip to main content
This guide takes you from zero to a completed on-chain transaction using the Yativo Crypto API. Each step includes examples in cURL, TypeScript, and Python.
Before starting, make sure you have a Yativo account with 2FA enabled and an API key with read, write, and transactions permissions. See the main Quickstart if you haven’t done this yet.

1

Authenticate

Exchange your API credentials for a Bearer token:
curl -X POST https://crypto-api.yativo.com/api/apikey/token \
  -H "Content-Type: application/json" \
  -d '{
    "api_key": "yvk_live_...",
    "api_secret": "yvs_live_..."
  }'
Save the access_token — you’ll use it as Authorization: Bearer {token} in all subsequent requests.
2

Create an account

Accounts are containers that hold wallets and assets. Create one for your business or for a specific use case:
curl -X POST https://crypto-api.yativo.com/api/accounts/create-account \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "account_name": "Main Treasury",
    "account_type": "business"
  }'
Response
{
  "id": "acc_01abc123",
  "account_name": "Main Treasury",
  "account_type": "business",
  "created_at": "2026-03-26T10:00:00Z"
}
Save the id — you’ll need it to add assets.
3

Add a wallet

Add a wallet for a specific chain and token to your account:
curl -X POST https://crypto-api.yativo.com/api/assets/add-asset \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "account_id": "acc_01abc123",
    "chain": "solana",
    "ticker": "USDC_SOL"
  }'
Response
{
  "id": "asset_01xyz789",
  "account_id": "acc_01abc123",
  "chain": "solana",
  "ticker": "USDC_SOL",
  "address": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
  "balance": "0",
  "created_at": "2026-03-26T10:01:00Z"
}
The address is your deposit address. Share it with anyone who needs to send funds to this wallet.
4

Check balance

After funding the wallet (or for an existing asset), check the current balance:
curl -X POST https://crypto-api.yativo.com/api/balance/check \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"asset_id": "asset_01xyz789"}'
Response
{
  "asset_id": "asset_01xyz789",
  "chain": "solana",
  "ticker": "USDC_SOL",
  "balance": "100.00",
  "balance_usd": "100.00",
  "last_updated": "2026-03-26T10:05:00Z"
}
5

Send funds

Send crypto from your wallet to an external address:
curl -X POST https://crypto-api.yativo.com/api/transactions/send-funds \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "from_asset_id": "asset_01xyz789",
    "to_address": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",
    "amount": "10.00",
    "chain": "solana",
    "ticker": "USDC_SOL",
    "priority": "medium"
  }'
Response
{
  "transaction_id": "txn_01pqr456",
  "status": "pending",
  "from_address": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
  "to_address": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",
  "amount": "10.00",
  "chain": "solana",
  "ticker": "USDC_SOL",
  "created_at": "2026-03-26T10:06:00Z"
}
The transaction starts as pending and moves to completed once confirmed on-chain. Set up a webhook to get notified when it completes.

What’s Next

Webhooks

Get notified in real time when deposits arrive or transactions complete.

Supported Chains

See all supported blockchains and tokens.

Yativo Card

Issue debit cards funded from crypto balances.

Sandbox

Test your integration safely without real funds.