Skip to main content
What you’ll build:
  • Get swap quotes from multiple liquidity sources in a single call
  • Receive ready-to-sign approve and swap transactions - no separate quote/execute steps
  • Bridge assets across chains (EVM ↔ EVM, EVM ↔ Solana)
Time: ~15 minutes

Prerequisites

  • A Zerion API key (get one here)
  • A wallet address with tokens to swap

How it works

Unlike most swap APIs that require separate quote and execute endpoints, the Zerion API combines both into a single call:
  1. Call GET /v1/swap/quotes/ with the sender, recipient, input asset, output asset, and amount
  2. Receive multiple quotes - each includes the expected output, fees, and (when executable) ready-to-sign transaction_approve and transaction_swap payloads
  3. Pick a quote and sign the transactions with your wallet
Quotes are returned best-first, sorted by the fiat value of output_amount_after_fees.

Key parameters