All API requests require authentication using a Bearer token.
Authorization:BearerAPI_KEY
ⓘ Info
Contact the team to get the API_KEY, these are also shared in hackathons!
Methods
1. Get Trade Estimate
Get a quote and all necessary data to execute a trade directly from a user's wallet, or make your user sign it and use your own relayer to provide gasless experience.
POST /order/estimate
Request Body
For example, a trade of 1 USDC from Base to USDT in Optimism:
ⓘ Info
Use this special addresses for native tokens: 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE
Parameters
Parameter
Type
Required
Description
srcChainId
number
Yes
Source chain ID
srcToken
string
Yes
Source token contract address
srcAmountWei
string
Yes
Amount in wei (string to handle large numbers)
destChainId
number
Yes
Destination chain ID
destToken
string
Yes
Destination token contract address
slippageBps
number
Yes
Slippage tolerance over the estimated output token amount
userAccount
string
Yes
User's wallet address
destReceiver
string
Yes
Recipient address on destination chain
feeRecipient
string
No
Fee recipient address on SOURCE chain
feeBps
string
No
Fee percentage over the input token amount
Example response
Fee Structure
Integrator Fees
You can specify optional custom fees for your integration. The user will be charged a percentage of input tokens:
feeRecipient: Your fee recipient address in source chain