logo

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.

  1. 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.

  2. Route

    The engine weighs liquidity across Solana's major DEXs for the order and returns the route it picked, inspectable before you sign.

  3. 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}]}'
POST, method quote · quote only

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

Raydium

Meteora

Orca

Raydium

Meteora

Orca

Raydium

Meteora

Orca

What you get with Carbium Swap API

Multi-DEX routing

  • Quotes compared across Solana's major DEXs
  • One route plan per request, returned before you sign
Quote reference

Execution controls

  • Slippage set per request in basis points
  • Simulate with simulateTransaction over RPC before you submit
How execution works

One flat fee

  • 0.05% per swap on every plan
  • Published requests per second and per minute on each plan
Compare plans

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
See our infrastructure

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 at published rates, up to 500 quotes a second 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's quote parameters and where they go in a Carbium request, from carbium.sh's quote reference.
JupiterbecomesCarbium
inputMintsrc_mint
outputMintdst_mint
amountamount_in
slippageBpsslippage_bps

Two calls, one endpoint

GET /swap/v1/quotePOST /swap/v1/swap
method quotemethod swap

quote, then swap with userPublicKey

quote, then swap with quote_id and user_pubkey; returns the transaction

Every parameter in the quote reference

Plans and pricing

Four quote plans, one per account and shared by all its keys. Every plan has the same 0.05% router fee, collected on chain in each swap the user signs and never through plan billing.

  • Free

    $0

    10 quotes a second

    600 quotes a minute

    0 credits per quote

  • Starter

    $7 a month

    50 quotes a second

    3,000 quotes a minute

    0 credits per quote

  • Pro

    $28 a month

    150 quotes a second

    9,000 quotes a minute

    0 credits per quote

  • Elite

    $104 a month

    500 quotes a second

    30,000 quotes a minute

    0 credits per quote

All plan details

These are carbium.sh's plans. You buy them and manage keys and billing on carbium.sh; the price and limits shown there when you buy apply.

Part of the Carbium stack

Solana Swap API questions

What the API does, what it costs, and how it fits next to the router you use today.

Read the quick start

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, among them Raydium, Meteora and Orca, and the set keeps growing.

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 execute a swap?

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, collected on chain in each swap the user signs and never through plan billing, plus the quote plan: Free $0, Starter $7, Pro $28 or Elite $104 a month. A quote costs 0 credits on every plan.

Is there a free plan?

Yes. The Free quote plan is $0 and allows 10 quotes a second and 600 a minute. It 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 requests per second and per minute 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, add the Quote module, and send one quote. The quick start takes you from there to swap, signing and submitting.

Quick start