GET /cq1/quote, Quote API on carbium services: returns {srcAmountIn, destAmountOut, destAmountOutMin, swapMode, slippage, priceImpactPct, routePlan, feeMint, feeBps, signatureFeeLamports, prioritizationFeeLamports, rentFeeLamports, inputMint, outputMint, swapType, router, requestId, priceImpact}. It costs 0 credits.
| param | type | ||
|---|---|---|---|
| src_mint | pubkey | req | query string |
| dst_mint | pubkey | req | query string |
| amount_in | u64 | req | query string |
| slippage_bps | u64 | req | query string |
curl 'https://services.carbium.sh/cq1/quote?src_mint=So11111111111111111111111111111111111111112&dst_mint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v&amount_in=10000000000&slippage_bps=50' -H 'x-api-key: <YOUR_KEY>'answer{srcAmountIn, destAmountOut, destAmountOutMin, swapMode, slippage, priceImpactPct, routePlan, feeMint, feeBps, signatureFeeLamports, prioritizationFeeLamports, rentFeeLamports, inputMint, outputMint, swapType, router, requestId, priceImpact}
refuses403 -32050 the account lacks the quote module; 401 -32001 the key lacks the quote scope