curl --request POST \
--url https://api.dzap.io/v1/quotes \
--header 'Content-Type: application/json' \
--data '
{
"fromChain": 42161,
"data": [
{
"amount": "332999",
"srcToken": "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
"destToken": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
"slippage": 0.9,
"toChain": 137
}
],
"account": "0x99BCEBf44433E901597D9fCb16E799a4847519f6",
"allowedProtocols": [
"<string>"
]
}
'{
"0xaf88d065e77c8cC2239327C5EDb3A432268e5831-0xEC70Dcb4A1EFa46b8F2D97C310C9c4790ba5ffA8": {
"status": "success",
"recommendedSource": "relayLink",
"recommendedSourceByAmount": "paraSwap",
"recommendedSourceByGas": "relayLink",
"tokensWithoutPrice": [],
"quoteRates": {
"relayLink": {
"data": {
"srcToken": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"srcAmount": "257827",
"destToken": "0xEC70Dcb4A1EFa46b8F2D97C310C9c4790ba5ffA8",
"destAmount": "75551963618749",
"fee": {
"gasFee": [
{
"address": "0x0000000000000000000000000000000000000000",
"amount": "242000000000",
"amountUSD": "0.00072350982",
"chainId": 42161,
"symbol": "ETH",
"logo": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png",
"decimals": 18,
"included": false
}
],
"protocolFee": [],
"providerFee": []
},
"priceImpactPercent": "-0.14",
"swapPerUnit": "0.00029",
"srcAmountUSD": "0.257778528524",
"destAmountUSD": "0.25741233972580353041",
"providerDetails": {
"id": "relayLink",
"icon": "https://relay.link/favicon.ico",
"name": "RelayLink"
}
}
},
"paraSwap": {
"data": {
"srcToken": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"srcAmount": "257827",
"destToken": "0xEC70Dcb4A1EFa46b8F2D97C310C9c4790ba5ffA8",
"destAmount": "76275707175364",
"fee": {
"gasFee": [
{
"address": "0x0000000000000000000000000000000000000000",
"amount": "2587400000000",
"amountUSD": "0.007735575654",
"chainId": 42161,
"symbol": "ETH",
"logo": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png",
"decimals": 18,
"included": false
}
],
"protocolFee": [],
"providerFee": []
},
"priceImpactPercent": "0.81",
"swapPerUnit": "0.00030",
"srcAmountUSD": "0.257778528524",
"destAmountUSD": "0.25987819916011093076",
"providerDetails": {
"id": "paraSwap",
"icon": "https://assets-global.website-files.com/617aa5e4225be2555942852c/62346c8ea897417281669ec1_favicon.png",
"name": "ParaSwap"
}
}
}
}
}
}Fetches quotes for swap and bridge. Returns quote rates from multiple providers with pricing, fees, and route information.
curl --request POST \
--url https://api.dzap.io/v1/quotes \
--header 'Content-Type: application/json' \
--data '
{
"fromChain": 42161,
"data": [
{
"amount": "332999",
"srcToken": "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
"destToken": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
"slippage": 0.9,
"toChain": 137
}
],
"account": "0x99BCEBf44433E901597D9fCb16E799a4847519f6",
"allowedProtocols": [
"<string>"
]
}
'{
"0xaf88d065e77c8cC2239327C5EDb3A432268e5831-0xEC70Dcb4A1EFa46b8F2D97C310C9c4790ba5ffA8": {
"status": "success",
"recommendedSource": "relayLink",
"recommendedSourceByAmount": "paraSwap",
"recommendedSourceByGas": "relayLink",
"tokensWithoutPrice": [],
"quoteRates": {
"relayLink": {
"data": {
"srcToken": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"srcAmount": "257827",
"destToken": "0xEC70Dcb4A1EFa46b8F2D97C310C9c4790ba5ffA8",
"destAmount": "75551963618749",
"fee": {
"gasFee": [
{
"address": "0x0000000000000000000000000000000000000000",
"amount": "242000000000",
"amountUSD": "0.00072350982",
"chainId": 42161,
"symbol": "ETH",
"logo": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png",
"decimals": 18,
"included": false
}
],
"protocolFee": [],
"providerFee": []
},
"priceImpactPercent": "-0.14",
"swapPerUnit": "0.00029",
"srcAmountUSD": "0.257778528524",
"destAmountUSD": "0.25741233972580353041",
"providerDetails": {
"id": "relayLink",
"icon": "https://relay.link/favicon.ico",
"name": "RelayLink"
}
}
},
"paraSwap": {
"data": {
"srcToken": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"srcAmount": "257827",
"destToken": "0xEC70Dcb4A1EFa46b8F2D97C310C9c4790ba5ffA8",
"destAmount": "76275707175364",
"fee": {
"gasFee": [
{
"address": "0x0000000000000000000000000000000000000000",
"amount": "2587400000000",
"amountUSD": "0.007735575654",
"chainId": 42161,
"symbol": "ETH",
"logo": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png",
"decimals": 18,
"included": false
}
],
"protocolFee": [],
"providerFee": []
},
"priceImpactPercent": "0.81",
"swapPerUnit": "0.00030",
"srcAmountUSD": "0.257778528524",
"destAmountUSD": "0.25987819916011093076",
"providerDetails": {
"id": "paraSwap",
"icon": "https://assets-global.website-files.com/617aa5e4225be2555942852c/62346c8ea897417281669ec1_favicon.png",
"name": "ParaSwap"
}
}
}
}
}
}Source chain ID where the swap originates
42161
Array of quote request details for each token pair to be swapped
Show child attributes
Amount of source token to be swapped (in wei/smallest unit)
"332999"
Source token contract address
"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"
Destination token contract address
"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"
Slippage tolerance percentage (0-100)
0.9
Destination chain ID where tokens will be received
137
Optional user wallet address for account-specific quotes
"0x99BCEBf44433E901597D9fCb16E799a4847519f6"
Optional array of allowed provider sources to filter quotes
Successful response with quotes from multiple providers with pricing, fees, and route information.
Show child attributes
"stargate"
Show child attributes
Show child attributes
"1000000000"
"1003"
"999989999"
"1001.989978998"
"999989999"
"0.999989999"
"60"
Show child attributes
"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"
42161
6
"USDT"
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png"
Show child attributes
"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"
10
6
"USDT"
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png"
Show child attributes
Show child attributes
"0x0000000000000000000000000000000000000000"
"18935672179879"
"0.0497288622787982298"
42161
18
true
"ETH"
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
Show child attributes
"0x0000000000000000000000000000000000000000"
"40000000000000"
"0.105048"
42161
"ETH"
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
18
false
Show child attributes
"bridge"
Show child attributes
Show child attributes
"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"
42161
6
"USDT"
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png"
"1000000000"
"1003.00000"
Show child attributes
"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"
10
6
"USDT"
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png"
"999989999"
"1001.98998"
Show child attributes
Show child attributes
"0x0000000000000000000000000000000000000000"
"18935672179879"
"0.0497288622787982298"
42161
18
true
"ETH"
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
Show child attributes
"0x0000000000000000000000000000000000000000"
"40000000000000"
"0.105048"
42161
"ETH"
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
18
false
"bridge"
"-0.10"