API Reference
Provides pricing and execution information for a potential swap without actually executing it. This endpoint calculates the expected output amount, fees, and price impact.
Request to quote a swap.
Amount of the input token
Address of the sender
Network of the input token
Address of the input token
(For Solana) For cross-chain swaps with a Solana origin. Pubkey of the message send account for CCTP event storage. This should be a keypair dedicated for this trade. 30 minutes after trade completes, you can close the account to reclaim SOL.
Network of the output token
Address of the output token
Address of the recipient
Address of the referrer
Commission in basis points
Whether tx.origin
should be atomically reimbursed for the gas used on the swap.
- Must be
null
ifsponsored
istrue
. - Only supported for EVM networks.
Slippage tolerance in basis points
Whether the swap should be gas-free
Returns quote for a swap
POST /v1/quote HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 274
{
"amount": "text",
"from": "text",
"inputNetwork": "mainnet",
"inputToken": "text",
"messageSendAccount": null,
"outputNetwork": "mainnet",
"outputToken": "text",
"recipient": "text",
"referrer": null,
"referrerCommissionBps": null,
"repayGas": null,
"slippageToleranceBps": null,
"sponsored": null
}
Returns quote for a swap
{
"error": null,
"permit": null,
"summary": null,
"swap": null
}
Broadcasts a signed gasless order to the network.
POST body to submit an order
Order to submit
Fullsig from EIP-712 permit message
Fullsig from EIP-712 swap message
Broadcasts a gasless swap
POST /v1/submit HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 44
{
"order": "text",
"permit": null,
"swap": "text"
}
Broadcasts a gasless swap
{
"error": null,
"txHash": null
}
Retrieves an order by its unique identifier.
Order ID
Returns order details
GET /v1/order/{id} HTTP/1.1
Host:
Accept: */*
Returns order details
{
"estimatedFillTime": null,
"fillTime": null,
"from": "text",
"id": "text",
"inputAmount": "text",
"inputToken": {
"address": "text",
"decimals": 1,
"id": "text",
"imageUrl": null,
"isPossibleSpam": true,
"name": null,
"network": "mainnet",
"palette": [
"text"
],
"peggedTo": null,
"permitScheme": "permit2",
"priceUsd": null,
"symbol": "text",
"tokenProgram": null
},
"inputTx": null,
"outputToken": {
"address": "text",
"decimals": 1,
"id": "text",
"imageUrl": null,
"isPossibleSpam": true,
"name": null,
"network": "mainnet",
"palette": [
"text"
],
"peggedTo": null,
"permitScheme": "permit2",
"priceUsd": null,
"symbol": "text",
"tokenProgram": null
},
"points": null,
"receivedAmount": null,
"receivedToken": null,
"receivedTx": null,
"recipient": "text",
"status": "filling",
"time": 1
}
Last updated