Solana Swap API for wallets, apps and developers
One key and two JSON-RPC calls: real-time quotes and executable swap transactions, routed across Solana's major DEXs at 0.05% per swap, served from infrastructure Carbium owns in Switzerland.
Fee
0.05%
per swap on every plan
Routing
Multi-DEX
Solana's major DEXs
Integration
1 key
JSON-RPC over HTTPS, x-api-key header, no SDK needed
Quote, route, execute
The whole Solana swap API in two calls on one endpoint. Quote first; send the quote's id with your wallet when you want the transaction.
Quote
The quote method with src_mint, dst_mint, amount_in and slippage_bps returns the live price, the route plan for that pair and size, and a quoteId good for 30 seconds.
Route
The engine weighs liquidity across Solana's major DEXs for the order and returns the route it picked, inspectable before you sign.
Execute
Send swap with that quote_id and your user_pubkey to get one unsigned base64 transaction. You sign, submit and confirm; Carbium RPC is one place to submit it.
curl https://services.carbium.sh \
-H 'content-type: application/json' \
-H 'x-api-key: YOUR_KEY' \
-d '{"jsonrpc":"2.0","id":1,"method":"quote","params":[{
"src_mint":"So11111111111111111111111111111111111111112",
"dst_mint":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount_in":"10000000","slippage_bps":50}]}'
const call = (method, params) =>
fetch("https://services.carbium.sh", {
method: "POST",
headers: { "content-type": "application/json", "x-api-key": "YOUR_KEY" },
body: JSON.stringify({ jsonrpc: "2.0", id: 1, method, params: [params] }),
}).then((r) => r.json());
const { result: quote } = await call("quote", {
src_mint: inputMint, dst_mint: outputMint, amount_in: String(amountIn), slippage_bps: 50,
});
const { result: swap } = await call("swap", {
quote_id: quote.quoteId, user_pubkey: wallet.publicKey.toBase58(),
});
// swap.transaction is one unsigned base64 transaction: sign it, then send it through your RPC.
{
"srcAmountIn": "10000000",
"destAmountOut": "1092857",
"minAmountOut": "1087392",
"slippageBps": 50,
"swapMode": "BaseIn",
"routePlan": [
{ "hop": 0, "percent": "100",
"swapInfo": { "label": "m-dlmm", "inAmount": "9995000", "outAmount": "1092857" } }
],
"quoteId": "4579cc7e1b1ec3ead63e9c1cbbfe8e19",
"platformFee": { "amount": "5000", "feeBps": 5, "mint": "So11111111111111111111111111111111111111112" }
}
Quote 0.01 SOL to USDC. Endpoint https://services.carbium.sh, key in the x-api-key header, amounts in the token's smallest unit as a string, slippage in basis points. Quick start in the docs.
Supported DEXs
Routes across Solana's major DEXs
Raydium
Meteora
Orca
What you get with Carbium Swap API
Multi-venue routing
- Quotes compared across Solana's major DEXs
- One route plan per request, returned before you sign
Execution controls
- Slippage set per request in basis points
- Simulate with simulateTransaction over RPC before you submit
One flat fee
- 0.05% per swap on every plan
- Published calls a second on each plan
- Free plan to start, paid plans from $7 a month
Self-owned infrastructure in Switzerland
- Served from a private data center Carbium owns in Switzerland
- Carbium's own fibre, routers, firewalls and power redundancy
- The same stack that runs Carbium RPC
Built for teams that build on Solana
Wallets
Add in-app token swaps without integrating each DEX yourself: one quote-and-swap flow, multi-DEX coverage, slippage set per request.
Automated apps
Programmatic quotes and transactions with published calls a second, up to 500 on Elite.
Developer teams
A flat 0.05% per swap, route plans you can inspect before signing, and infrastructure Carbium owns and operates in Switzerland.
Moving from Jupiter or another Solana router
The request shape is the one you already know: quote first, then an executable transaction. The quote reference lists the parameters, and the comparison sets the routers side by side.
| Jupiter | becomes | Carbium |
|---|---|---|
inputMint | src_mint | |
outputMint | dst_mint | |
amount | amount_in | |
slippageBps | slippage_bps |
Two calls, one endpoint
GET /swap/v1/quotePOST /swap/v1/swapPOST · method quotePOST · method swapquote, then swap with userPublicKey
quote, then swap with quote_id and user_pubkey; returns the transaction
Docs guide
Quote and swap reference
Parameter by parameter: src_mint, dst_mint, amount_in and slippage_bps for quote, quote_id and user_pubkey for swap, and where the transaction lands in your flow.
Read the quote reference
Blog · 2026
Solana DEX aggregator comparison 2026
Carbium, Jupiter, Titan, OKX and DFlow on routing depth, quote speed and fees, with the numbers behind each claim.
Read the comparison
Plans and pricing
Every plan has the same 0.05% router fee, collected on chain in each swap the user signs and never through plan billing. Paid plans raise the published calls a second.
Free
Start building at no cost: quotes and unsigned swap transactions.
$0/month
- 10 calls/sec
- 0.05% per swap
Starter
RecommendedTake a wallet or app live with five times the Free rate.
$7/month
- 50 calls/sec
- 0.05% per swap
Pro
For apps with steady traffic.
$28/month
- 150 calls/sec
- 0.05% per swap
Elite
The highest published rate, for high-traffic apps and backends.
$104/month
- 500 calls/sec
- 0.05% per swap
Part of the Carbium stack
Carbium RPC
JSON-RPC, WebSocket and Carbon Stream on bare metal Carbium owns in Switzerland. Submit the swaps you build here.
Carbium RPC
Carbium Swap
A separate non-custodial interface for Solana token swaps, with the same 0.05% router fee collected on chain. Users sign their own transactions, and there is no fiat purchase.
dex.carbium.io
Carbium Token Data
Search, resolve and batch Solana token metadata to pair with your quotes.
Token Data API
Solana Swap API questions
What the API does, what it costs, and how it fits next to the router you use today.
What is the Carbium Swap API?
A JSON-RPC API for the Solana blockchain that returns real-time swap quotes and builds executable swap transactions, routing each order across several DEXs from a single API key. It costs 0.05% per swap on every plan.
Which DEXs does it route across?
Solana's major DEXs: 15 pool families across Raydium (AMM, CPMM, CLMM, LaunchLab), Orca Whirlpool, Meteora (DLMM, DAMM, DAMM v2, DBC), Pump (curve, AMM), Manifest, PancakeSwap v3 and Byreal, with multi-hop and split routes.
How do I get a quote?
POST a JSON-RPC call with method quote to https://services.carbium.sh: src_mint, dst_mint, amount_in as a string in the token's smallest unit, and slippage_bps, with your key in the x-api-key header. The result carries the price, the route plan and a quoteId good for 30 seconds.
How do I build a swap transaction?
Quote first, then call swap within 30 seconds with the quote's quoteId as quote_id and your wallet address as user_pubkey. The result is transaction, one unsigned base64 transaction. Your app signs it, sends it through a Solana RPC such as Carbium RPC, and confirms it.
What does the Swap API cost?
A 0.05% router fee per swap on every plan, already inside every quote, collected on chain in each swap the user signs and never through plan billing. Free is $0 with 10 calls a second; Starter is $7 a month with 50; Pro is $28 with 150; Elite is $104 with 500. Quotes spend no credits. Plans are priced by the month.
Is there a free plan?
Yes. Free costs nothing, allows 10 calls a second, and is enough to integrate and test quotes and swaps before you launch.
How is this different from Jupiter's swap API?
The shape is the same: quote, then an executable transaction. Carbium routes across its own set of DEXs, charges a flat 0.05% per swap, publishes calls a second for every plan, and serves the API from infrastructure it owns in Switzerland. The quote reference lists every parameter.
Do I need my own RPC?
Not for quoting. Quotes and the transaction payload come from the Swap API. Signing and submitting the transaction is your side, through any Solana RPC; Carbium RPC runs on the same infrastructure.
Where are the docs, and what about the v1 endpoints?
The docs at carbium.sh/docs cover quote and swap: every parameter, result field and error. The older v1 and v2 REST routes take only keys issued before carbium.sh; a carbium.sh key uses the quote and swap methods.
Get a key and make your first quote
Create a free account on carbium.sh: the first sign-in gives a starter key, one key for every Carbium service. There the Swap API is the Quote module; add it, free or paid, and send one quote. The quick start takes you from there to swap, signing and submitting.