curl -X POST https://api.stableyard.fi/v2/sessions/quote \ -H "Authorization: Bearer sy_pub_*" \ -H "Content-Type: application/json" \ -d '{ "amount": 5000000, "currency": "USDC", "destination": "acc_merchant", "sourceChain": "base", "sourceToken": "USDC" }'
{ "fees": { "total": 25000, "totalFormatted": "0.025", "stableyard": 15000, "partner": 10000 }, "route": { "sourceChain": "base", "destChain": "polygon", "estimatedSeconds": 30 }, "paymentMethods": [ { "type": "crypto", "chain": "base", "chainId": 8453, "tokens": ["USDC"] } ], "requestId": "req_abc123" }
Get a fee and routing quote without creating a session
POST /sessions/:id/quote
sy_secret_*
sy_pub_*
100000
USDC
standard
boosted
50