How a swap works
1
Find what you can offer
List the networks and the pairs you can offer.
2
Quote
Ask for a price by token address and amount. Multiliquid quotes every capital provider that can fill the swap and returns the best.
3
Build and sign
Get the unsigned transactions for the user’s wallet, with checks that show whether the swap would succeed. The user signs them.
4
Submit and track
Send the signed transactions back in one request. Multiliquid checks them, broadcasts them in order, and tracks each until it is final.
Two ways to swap
Instant swaps
The swap settles in one transaction, at the best capital provider’s current price.
Batch orders
The user signs an order now, and it settles in the next daily batch against a capital provider’s posted capacity.
What you need
- No API key. The user’s wallet signature authorizes every transaction. A key raises your rate allowance and records submissions under your organization.
- A wallet that signs without broadcasting, so Multiliquid can check and relay the transaction. A wallet that only broadcasts can still swap, but Multiliquid then has nothing to track.
- Network fees, which the user’s wallet pays in ETH or SOL.
Next steps
Quick start
Quote, build, and submit a first swap on Ethereum.
Swap instantly
The full flow, from quote to a finalized swap.
Quotes and builds
Every field of a quote and a build.