Raptor — Solana DEX Aggregator & Swap API

Swap smarter.Route faster.

Raptor finds the best prices across Solana. One API, every DEX.

Self-Host

Run your own
instance

Download the Raptor binary and run it on your own infrastructure. Completely free. No API keys, no rate limits, no instance limits.

Full control over your DEX aggregator. Configure DEX filtering, worker threads, rate limits, and enable optional features like WebSocket streaming and Yellowstone Jet TPU.

No API keys
Just run the binary
No limits
Run as many as you want
100% free
No licensing fees
Your infra
Full control
CLI Flags
--include-dexesOnly include specific DEXes
--exclude-dexesExclude specific DEXes
--enable-websocketEnable streaming quotes at /stream
--enable-yellowstone-jetEnable Jet TPU transaction sending
--workersNumber of worker threads
--rpc-rate-limitLimit RPC calls per second
Environment Variables
RPC_URLSolana RPC endpoint
YELLOWSTONE_ENDPOINTgRPC endpoint
BIND_ADDRServer address (default: 0.0.0.0:8080)
Routing

Best prices across 20+ DEXes

Raptor finds the optimal route for every swap, splitting across pools, chaining up to 4 hops, and comparing prices in milliseconds.

Raydium
Raydium
4 DEXes
Meteora
Meteora
5 DEXes
Orca
Orca
2 DEXes
Pump.fun
Pump.fun
2 DEXes
Bonding Curves
Bonding Curves
3 DEXes
PropAMM
PropAMM
5 DEXes
Others
Others
2 DEXes
API

Simple, powerful API

Get a quote, build a transaction, send it. Three calls to execute any swap on Solana.

Quoting

Get the best swap quotes with optimal routing. Stream live via WebSocket.

GET/quote
WS/stream

Swapping

Build complete swap transactions ready for signing and submission.

POST/swap
POST/swap-instructions
POST/quote-and-swap
WS/stream/swap

Sending

Send transactions via Yellowstone Jet TPU with automatic retry and tracking.

POST/send-transaction
GET/transaction/:sig

Configuration

Configure slippage, priority fees, platform fees, and DEX filtering.

PARAMslippageBps
PARAMpriorityFee
PARAMdexes
PARAMfeeBps

Sending

Land transactions
faster

Send signed transactions directly to validators via Yellowstone Jet TPU. Automatic retrying, confirmation tracking, and parsed swap events.

Track status in real-time:pending\u2192confirmedorfailed
Ultra-low latency
Direct TPU submission via Yellowstone
Auto-retry
Automatic resending for up to 30 seconds
Status tracking
Real-time confirmation monitoring
Event parsing
Parsed Raptor swap events returned
Latency metrics
Send-to-confirm timing included
Multi-identity
4 default identities for throughput
Transaction Docs
swap.js
// 1. Get a quote
const quote = await fetch(
  'https://raptor-beta.solanatracker.io/quote
    ?inputMint=So11...&outputMint=EPjF...
    &amount=1000000000'
).then(r => r.json());

// 2. Build transaction
const { swapTransaction } = await fetch(
  'https://raptor-beta.solanatracker.io/swap',
  { method: 'POST',
    body: JSON.stringify({
      userPublicKey, quoteResponse: quote
    })
  }
).then(r => r.json());

// 3. Sign & send via Jet TPU
const signed = await wallet.signTransaction(tx);
const { signature } = await fetch(
  'https://raptor-beta.solanatracker.io/send-transaction',
  { method: 'POST', body: JSON.stringify({ transaction: signed }) }
).then(r => r.json());
Monetize

Build your own swap product

Add a platform fee to every swap and collect revenue directly to your wallet. Up to 10% fee.

Fee Account

Specify your wallet address to receive fees directly. No intermediaries.

feeAccount: "Your...Pubkey"

Fee BPS

Set your fee in basis points. 100 bps = 1%. Maximum 1000 bps (10%).

feeBps: 50 // 0.5% fee

Slippage Charge

Optionally capture extra value on positive slippage for additional revenue.

chargeBps: 50

Ready to swap smarter?

Download the binary or use our hosted API.