Skip to main content
POST
/
v1
/
swap
/
quote
curl -X POST 'https://crypto-api.yativo.com/api/v1/swap/quote' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "sourceAsset": "USDC_SOL",
    "destinationAsset": "ETH_Base",
    "amount": "10",
    "destinationAddress": "0xAbCd1234EfGh5678IjKl9012MnOp3456QrSt7890"
  }'
{
  "success": true,
  "data": {
    "quoteId": "qt_abc123def456",
    "sourceAsset": "USDC_SOL",
    "destinationAsset": "ETH_Base",
    "inputAmount": "10",
    "estimatedOutput": "0.003812",
    "exchangeRate": "0.0003812",
    "fee": {
      "amount": "0.15",
      "currency": "USDC"
    },
    "expiresAt": "2026-03-28T10:05:00.000Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.yativo.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorization
string
required
Bearer token: Bearer YOUR_ACCESS_TOKEN
sourceAsset
string
required
The source asset identifier, e.g. USDC_SOL, ETH.
destinationAsset
string
required
The destination asset identifier, e.g. USDC_ETH, MATIC.
amount
string
required
The amount to swap in the source token’s native units, e.g. "100.00".
sourceAddress
string
The source wallet address. Optional — defaults to the user’s wallet for the source asset.
destinationAddress
string
The destination wallet address. Optional — defaults to the user’s wallet for the destination asset.
curl -X POST 'https://crypto-api.yativo.com/api/v1/swap/quote' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "sourceAsset": "USDC_SOL",
    "destinationAsset": "ETH_Base",
    "amount": "10",
    "destinationAddress": "0xAbCd1234EfGh5678IjKl9012MnOp3456QrSt7890"
  }'
{
  "success": true,
  "data": {
    "quoteId": "qt_abc123def456",
    "sourceAsset": "USDC_SOL",
    "destinationAsset": "ETH_Base",
    "inputAmount": "10",
    "estimatedOutput": "0.003812",
    "exchangeRate": "0.0003812",
    "fee": {
      "amount": "0.15",
      "currency": "USDC"
    },
    "expiresAt": "2026-03-28T10:05:00.000Z"
  }
}