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"
}
}
Swap
Get Swap Quote
Get a price quote for a cross-chain or same-chain token swap
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"
}
}
string
required
Bearer token:
Bearer YOUR_ACCESS_TOKENstring
required
The source asset identifier, e.g.
USDC_SOL, ETH.string
required
The destination asset identifier, e.g.
USDC_ETH, MATIC.string
required
The amount to swap in the source token’s native units, e.g.
"100.00".string
The source wallet address. Optional — defaults to the user’s wallet for the source asset.
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"
}
}

