Skip to main content

Send Your First Transaction

Welcome to the Swaps documentation! 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. 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.