0block docs
API

Swap

Route swaps across 40+ Solana DEXs in a single transaction with the 0block DEX Router, our on-chain program.

The 0block DEX Router is a single on-chain Solana program that routes a swap across 40+ DEX integrations in one transaction — with multi-hop, multi-fork routing, slippage protection, and tenant-based fee sharing.

  • Router program: zeroRxfemoQCz6JT7RyShjuuRCN7VZof1WSekfXhmEn

Which DEXs can I route through?

40+ integrations, across:

  • Raydium (AMM v4, Stable, CLMM, CLMM v2, CPMM, Launchpad)
  • Meteora (DLMM, Dynamic Pools, DBC)
  • Orca Whirlpools
  • pump.fun (bonding curve + PumpSwap AMM)
  • Phoenix
  • OpenBook v2
  • Lifinity
  • SolFi
  • Sanctum (+ Sanctum Router)
  • Stabble
  • Saber
  • PancakeSwap v3
  • GooseFX
  • FluxBeam
  • Aldrin
  • Saros
  • Manifest
  • Vertigo
  • ZeroFi
  • WooFi
  • Obric v2
  • Boop.fun
  • Virtuals
  • Byreal CLMM
  • Gavel
  • Tessera
  • Numeraire
  • Qualia
  • Dooar
  • 1DEX
  • SPL Token Swap
  • StableSwap
  • SolRFQ

How it works

The router exposes a single swap instruction that executes a multi-hop, multi-fork route and emits one typed swap outcome event (success or failure, with a full fee breakdown) per swap.

  • Slippage protection. Set a minimum return directly, or supply an expected output plus a slippage tolerance in basis points — the router derives and enforces the minimum return before the swap settles.
  • Fee mints. Fees are charged on whichever side of the swap includes an allowlisted mint: SOL, wSOL, USDC, or USD1. A swap must include one of these on its source or destination side.

What are the DEX Router fees?

  • 1% of the swap amount by default.
  • As low as 0.01% for high-volume developers and DEXes — contact us on Discord.
  • Fees are percentage-based and, for integrators, split between 0block and your own fee vault.

Dedicated tenant programs

High-volume integrators can run a dedicated tenant program — your own program ID and fee configuration that routes through the DEX Router. A tenant program lets you:

  • Set and collect your own fee (into your own fee vault), on top of or in place of the default, within an agreed cap.
  • Get an isolated configuration keyed to your program.

Reach out on Discord to set one up.

Integration

Integration guide coming soon. A step-by-step client integration guide (building routes, assembling the swap transaction, and the SDK) is on the way. For early access, reach out on Discord.