curl -X POST https://api.dzap.io/v1/quotes \
-H "Content-Type: application/json" \
-d '{
"fromChain": 42161,
"data": [
{
"amount": "1000000",
"srcToken": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"destToken": "0x4200000000000000000000000000000000000006",
"toChain": 8453,
"slippage": 1
}
],
"account": "0x99BCEBf44433E901597D9fCb16E799a4847519f6"
}'
const quotes = await dzap.getTradeQuotes({
fromChain: 42161,
data: [
{
amount: '1000000',
srcToken: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831',
destToken: '0x4200000000000000000000000000000000000006',
toChain: 8453,
slippage: 1,
},
],
account: '0x99BC...',
});
{
"42161_0xaf88d065e77c8cC2239327C5EDb3A432268e5831_8453_0x4200000000000000000000000000000000000006": {
"recommendedSource": "across",
"bestReturnSource": "across",
"quoteRates": {
"across": {
"providerDetails": { "id": "across", "name": "Across", "icon": "https://..." },
"srcAmount": "1000000",
"srcAmountUSD": "1.00",
"destAmount": "300000000000000",
"destAmountUSD": "0.99",
"minDestAmount": "298500000000000",
"priceImpactPercent": "0.12",
"duration": "90",
"gasless": false,
"fee": { "gasFee": [], "protocolFee": [], "providerFee": [] },
"steps": [{ "type": "bridge", "exchange": { "logo": "https://...", "name": "Across" } }],
"path": []
}
},
"tokensWithoutPrice": {}
}
}
Trade API
Get Quotes
Get best-route quotes for same-chain swaps and cross-chain bridges, ranked across providers.
POST
/
v1
/
quotes
curl -X POST https://api.dzap.io/v1/quotes \
-H "Content-Type: application/json" \
-d '{
"fromChain": 42161,
"data": [
{
"amount": "1000000",
"srcToken": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"destToken": "0x4200000000000000000000000000000000000006",
"toChain": 8453,
"slippage": 1
}
],
"account": "0x99BCEBf44433E901597D9fCb16E799a4847519f6"
}'
const quotes = await dzap.getTradeQuotes({
fromChain: 42161,
data: [
{
amount: '1000000',
srcToken: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831',
destToken: '0x4200000000000000000000000000000000000006',
toChain: 8453,
slippage: 1,
},
],
account: '0x99BC...',
});
{
"42161_0xaf88d065e77c8cC2239327C5EDb3A432268e5831_8453_0x4200000000000000000000000000000000000006": {
"recommendedSource": "across",
"bestReturnSource": "across",
"quoteRates": {
"across": {
"providerDetails": { "id": "across", "name": "Across", "icon": "https://..." },
"srcAmount": "1000000",
"srcAmountUSD": "1.00",
"destAmount": "300000000000000",
"destAmountUSD": "0.99",
"minDestAmount": "298500000000000",
"priceImpactPercent": "0.12",
"duration": "90",
"gasless": false,
"fee": { "gasFee": [], "protocolFee": [], "providerFee": [] },
"steps": [{ "type": "bridge", "exchange": { "logo": "https://...", "name": "Across" } }],
"path": []
}
},
"tokensWithoutPrice": {}
}
}
Returns the best available routes for one or more swap/bridge pairs, including recommended provider, priced route, and fees. Transaction calldata is not included - call
/v1/buildTx separately once you’ve picked a route.
Body
integer
required
Source chain ID for every item in
data.object[]
required
Array of trade requests to quote.
Show data item
Show data item
string
required
Amount to send, in the source token’s smallest unit.
string
required
Source token contract address.
integer
Source token decimals (skips a lookup if provided).
string
required
Destination token contract address.
integer
Destination token decimals (skips a lookup if provided).
integer
required
Destination chain ID.
number
required
Slippage tolerance, in percent.
string
Restrict/prefer quoting to a specific provider ID.
string
User’s wallet address.
string
Quote filter:
all (default), best, or fastest.boolean
Request gasless-eligible quotes.
boolean
Request private/MEV-protected quotes.
boolean
Skip gas/output estimation for a faster response.
object
Allow/deny list of bridge providers:
{ allow?: string[]; deny?: string[] }.object
Allow/deny list of DEX providers:
{ allow?: string[]; deny?: string[] }.object
Fine-tune quote collection timing.
Show timingStrategy
Show timingStrategy
integer
Minimum wait time before returning results. Default
1000.integer
Maximum wait time for quote optimization. Default
5000.integer
Delay between subsequent provider batches. Default
500.integer
Target number of quotes to collect. Default
3.boolean
Return partial results once
maxWaitTimeMs is hit.Response
The response is an object keyed by pair identifier ({fromChain}_{srcToken}_{toChain}_{destToken}), not wrapped in a data envelope.
string
Per-pair status, if applicable.
string
Provider ID of the recommended route.
string
Provider ID with the best return - use as a fallback route.
string
Provider ID with the fastest execution (bridge quotes only).
object
Map keyed by provider ID, each value a full quote.
Show quote
Show quote
object
Present for bridge routes. Same shape as
providerDetails above.string
string
string
string
string
string
Effective exchange rate for this route.
object
Same shape as
srcToken above.string
string
Estimated seconds to completion.
boolean
object
object[]
object
Provider-specific extra data (shape varies).
object
Map of
chainId → token addresses missing price data.Examples
curl -X POST https://api.dzap.io/v1/quotes \
-H "Content-Type: application/json" \
-d '{
"fromChain": 42161,
"data": [
{
"amount": "1000000",
"srcToken": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"destToken": "0x4200000000000000000000000000000000000006",
"toChain": 8453,
"slippage": 1
}
],
"account": "0x99BCEBf44433E901597D9fCb16E799a4847519f6"
}'
const quotes = await dzap.getTradeQuotes({
fromChain: 42161,
data: [
{
amount: '1000000',
srcToken: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831',
destToken: '0x4200000000000000000000000000000000000006',
toChain: 8453,
slippage: 1,
},
],
account: '0x99BC...',
});
{
"42161_0xaf88d065e77c8cC2239327C5EDb3A432268e5831_8453_0x4200000000000000000000000000000000000006": {
"recommendedSource": "across",
"bestReturnSource": "across",
"quoteRates": {
"across": {
"providerDetails": { "id": "across", "name": "Across", "icon": "https://..." },
"srcAmount": "1000000",
"srcAmountUSD": "1.00",
"destAmount": "300000000000000",
"destAmountUSD": "0.99",
"minDestAmount": "298500000000000",
"priceImpactPercent": "0.12",
"duration": "90",
"gasless": false,
"fee": { "gasFee": [], "protocolFee": [], "providerFee": [] },
"steps": [{ "type": "bridge", "exchange": { "logo": "https://...", "name": "Across" } }],
"path": []
}
},
"tokensWithoutPrice": {}
}
}
Last modified on July 29, 2026