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

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
    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 calls a second on each plan
    • Free plan to start, paid plans from $7 a month
    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 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'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
POST · method quotePOST · method 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

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
    Start Free
  • Starter

    Recommended

    Take a wallet or app live with five times the Free rate.

    $7/month

    • 50 calls/sec
    • 0.05% per swap
    Get Started
  • Pro

    For apps with steady traffic.

    $28/month

    • 150 calls/sec
    • 0.05% per swap
    Get Started
  • Elite

    The highest published rate, for high-traffic apps and backends.

    $104/month

    • 500 calls/sec
    • 0.05% per swap
    Get Started

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.