Bearer token: Bearer YOUR_ACCESS_TOKEN
The source blockchain network, e.g. solana, ethereum.
The source token ticker symbol, e.g. USDC_SOL, ETH.
The destination blockchain network, e.g. ethereum, polygon.
The destination token ticker symbol, e.g. USDC_ETH, MATIC.
The amount to swap in the source token’s native units, e.g. "100.00".
The source wallet address sending the funds.
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"
}