Skip to main content
POST
/
api
/
swap
/
quote
curl -X POST 'https://crypto-api.yativo.com/api/swap/quote' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "sourceAsset": "USDC_SOL",
    "destinationAsset": "ETH_Base",
    "amount": "10"
  }'
{
  "success": false,
  "error": "Insufficient balance. Required: 10, Available: 0.300000"
}
Authorization
string
required
Bearer token: Bearer YOUR_ACCESS_TOKEN
from_chain
string
required
The source blockchain network, e.g. solana, ethereum.
from_ticker
string
required
The source token ticker symbol, e.g. USDC_SOL, ETH.
to_chain
string
required
The destination blockchain network, e.g. ethereum, polygon.
to_ticker
string
required
The destination token ticker symbol, e.g. USDC_ETH, MATIC.
amount
string
required
The amount to swap in the source token’s native units, e.g. "100.00".
from_address
string
required
The source wallet address sending the funds.
to_address
string
required
The destination wallet address to receive the swapped funds.
curl -X POST 'https://crypto-api.yativo.com/api/swap/quote' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "sourceAsset": "USDC_SOL",
    "destinationAsset": "ETH_Base",
    "amount": "10"
  }'
{
  "success": false,
  "error": "Insufficient balance. Required: 10, Available: 0.300000"
}