services

GET /cq1/quote

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.

GET /cq1/quote0 credits
paramtype
src_mintpubkeyreqquery string
dst_mintpubkeyreqquery string
amount_inu64reqquery string
slippage_bpsu64reqquery 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