Returns swap quotes from multiple liquidity sources for a same-chain swap or a cross-chain bridge between two fungible assets. Supports EVM chains and Solana, including EVM ↔ Solana bridges.
Quotes are returned best-first: sorted in descending order by the fiat value of output_amount_after_fees (output amount minus network, protocol and bridge fees that are not already included in the rate). Quotes with the same score are tied-broken alphabetically by liquidity_source.id, so identical requests always return quotes in the same order.
The input and output parameters are objects encoded with bracket notation in the URL — the request is sent as a flat query string. For example:
GET /v1/swap/quotes/?currency=usd&input[chain_id]=base&input[fungible_id]=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2&input[amount]=0.001&output[fungible_id]=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48&from=0xd8da6bf26964af9d7eed9e03e53415d37aa96045&to=0xd8da6bf26964af9d7eed9e03e53415d37aa96045
Documentation Index
Fetch the complete documentation index at: https://developers.zerion.io/llms.txt
Use this file to discover all available pages before exploring further.
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Currency in which fiat values of amounts and fees in the response are expressed.
Address of the wallet performing the swap. Must match the chain type of input[chain_id] (EVM hex or Solana base58).
Recipient of the output asset. Must match the chain type of output[chain_id]. For a same-chain swap to the same wallet, set to equal to from.
The asset being sent.
The asset being received.
Maximum acceptable slippage in percent. When omitted, an auto-slippage value is chosen.
x >= 0