Skip to main content
Swaps is the execution layer for moving value across chains: swaps, bridges, cross-chain contract calls, prediction market trading, and dedicated stableswap liquidity — behind one API. Your users transact with any token on any chain; Swaps handles routing, transaction construction, and end-to-end tracking.

What you can build

Swaps, bridges & cross-chain calls

One getAction call returns a ready-to-broadcast transaction for any swap, bridge, or cross-chain contract call.

Prediction markets

Let users bet on Polymarket with whatever they hold — one call from any token on any chain to a placed order.

Stableswaps

Stable-pair pricing far tighter than general-purpose AMMs, routed automatically inside getAction.

Protocol integration

DEX aggregator or solver? Route over Swaps’ stableswap liquidity directly at the contract level.

Send Your First Transaction

Here you’ll find an interactive API playground and detailed integration guides to help you seamlessly send your first swap, bridge, or cross-chain call transaction. To get started, check out our:

Swap integration guide

Follow our guide for step-by-step walkthrough of integration recommendations.
or test each step of the flow yourself!

1. Check available routes

Get available paths for a given source token.

2. Request a quote

Call the /getAction endpoint to return a serialized swap or cross-chain-call transaction.

3. Broadcast your tx

Reference the broadcast methods in the Swap Guide for each VM.

4. Register your tx

For Alt VMs, register your transaction to trigger indexing.

5. Track your tx's status

Leverage the status endpoint or webhooks to track end-to-end execution.

6. Maintain historical tx data

Return all transactions for your org.

Integrate Prediction Markets

Swaps enables users to seamlessly trade on prediction markets directly from their wallet using any token on any chain.

Integration Patterns

Compare the one-call chain-abstracted flow against the direct three-step flow and pick the right fit for your app.
Try out our reference application to see how we’ve abstracted prediction market trading to a single swap!

Reference Application

Check out the discovery path and network requests to quickly add prediction markets to your app.