Skip to main content
POST
Returns the best path for the requested operation, including approval data, expected output, and per-step fees.

Body

srcToken
string
required
Source token address. Use 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE for native.
srcChainId
integer
required
Source chain ID.
destToken
string
required
Destination token (or LP/NFT) address.
destChainId
integer
required
Destination chain ID. Same as srcChainId for same-chain.
slippage
number
required
Slippage tolerance, in percent. 0.5 = 0.5%.
amount
string
Amount to swap or liquidity to add (in wei). Optional for some operations.
account
string
Account initiating the zap. Optional for a quote; required when building the transaction.
recipient
string
Recipient address for the resulting tokens / position. Optional for a quote; required when building the transaction.
refundee
string
Address to receive refunds if the operation fails partway. Optional for a quote; required when building the transaction.
permitData
string
Pre-signed permit data for the source token (optional).
positionDetails
object
NFT-related operation details (e.g. Uniswap V3 LP NFT).
poolDetails
object
Pool-specific details for liquidity operations.
allowedBridges
string[]
Whitelist of bridges to consider.
allowedDexes
string[]
Whitelist of swap protocols to consider.
integrator
object
Integrator fee configuration.

Response

status
string
"success" on 200.
data.approvalData
object[]
Array of approvals to grant before executing (one per token that needs approval; empty if none needed).
data.output
object[]
Final output amount(s) of the whole zap.
data.dust
object[]
Any leftover/unswept amounts produced by the route. Same shape as data.output items above.
data.path
object[]
Ordered list of route steps.

Examples

Last modified on July 14, 2026