Skip to main content
Swap any SPL token on Solana through the Trading API.

Features

  • Best execution: JIT routing re-optimizes the route at execution time.
  • Live market data: Quote and book streams push prices and depth without polling.
  • Gasless swaps: Sponsor users’ transaction fees so they trade without holding SOL.
  • Composable transactions: Bundle the returned transaction with your own instructions and run them atomically.
  • Fine-grained control: Set slippage, priority fees, and venue restrictions per order.
  • No protocol fee: DFlow charges none. Add your own platform fee.

How It Works

  1. The app requests an order from the /order endpoint with input mint, output mint, and amount, plus optional parameters like slippage, platform fees, priority fees, and venue restriction.
  2. The user signs the returned transaction.
  3. The app submits it to a Solana RPC and confirms status.