curl --request POST \
--url https://zap.dzap.io/v1/quote \
--header 'Content-Type: application/json' \
--data '
{
"srcToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"srcChainId": 8453,
"destToken": "0xd0b53D9277642d899DF5C87A3966A349A798F224",
"destChainId": 8453,
"recipient": "0x99BCEBf44433E901597D9fCb16E799a4847519f6",
"slippage": 0.5,
"account": "0x99BCEBf44433E901597D9fCb16E799a4847519f6"
}
'{
"status": "success",
"data": {
"amountOut": "0",
"approvalData": {
"callTo": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"approveTo": "0x1d46863e3592745008b5CbbAC12014F67329A9b8",
"amount": "1680715"
},
"path": [
{
"action": "swap",
"protocol": {
"id": "dzap",
"name": "Dzap Aggregator",
"icon": "https://dzap.io/favicon.ico"
},
"input": [
{
"amount": "1680715",
"amountUSD": "1.68072",
"asset": {
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"chainId": 8453,
"decimals": 6,
"logo": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",
"price": "1",
"symbol": "USDC",
"name": "USD Coin",
"type": "ERC20"
}
}
],
"output": [
{
"amount": "918943376897193",
"minReturn": "918024433520296",
"amountUSD": "1.68295",
"asset": {
"address": "0x4200000000000000000000000000000000000006",
"chainId": 8453,
"decimals": 18,
"logo": "https://static.debank.com/image/coin/logo_url/eth/d61441782d4a08a7479d54aea211679e.png",
"price": "1831.4",
"symbol": "WETH",
"name": "Wrapped Ether",
"type": "ERC20"
}
}
],
"fee": [],
"estimatedDuration": 10,
"dust": []
},
{
"action": "deposit",
"protocol": {
"id": "uniswap",
"name": "Uniswap V3",
"icon": "https://app.uniswap.org/favicon.png"
},
"input": [
{
"amount": "917721515538050",
"amountUSD": "1.68072",
"asset": {
"address": "0x4200000000000000000000000000000000000006",
"chainId": 8453,
"decimals": 18,
"logo": "https://static.debank.com/image/coin/logo_url/eth/d61441782d4a08a7479d54aea211679e.png",
"price": "1831.4",
"symbol": "WETH",
"name": "Wrapped Ether",
"type": "ERC20"
}
},
{
"amount": "3319285",
"amountUSD": "3.31929",
"asset": {
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"chainId": 8453,
"decimals": 6,
"logo": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",
"price": "1",
"symbol": "USDC",
"name": "USD Coin",
"type": "ERC20"
}
}
],
"output": [
{
"amount": "0",
"minReturn": "0",
"amountUSD": "0.00000",
"asset": {
"address": "0xd0b53D9277642d899DF5C87A3966A349A798F224",
"chainId": 8453,
"decimals": 18,
"logo": "https://app.uniswap.org/favicon.png",
"price": "0",
"symbol": "Wrapped Ether/USD Coin",
"name": "Wrapped Ether/USD Coin v3 0.05%",
"type": "ERC721"
}
}
],
"fee": [
{
"amount": "9177215155380",
"amountUSD": "0.01681",
"asset": {
"address": "0x4200000000000000000000000000000000000006",
"chainId": 8453,
"decimals": 18,
"logo": "https://static.debank.com/image/coin/logo_url/eth/d61441782d4a08a7479d54aea211679e.png",
"price": "1831.4",
"symbol": "WETH",
"name": "Wrapped Ether",
"type": "ERC20"
}
},
{
"amount": "33192",
"amountUSD": "0.03319",
"asset": {
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"chainId": 8453,
"decimals": 6,
"logo": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",
"price": "1",
"symbol": "USDC",
"name": "USD Coin",
"type": "ERC20"
}
}
],
"estimatedDuration": 10,
"dust": [
{
"amount": "302917982246",
"minReturn": "302917982246",
"amountUSD": "0.00055",
"dust": true,
"asset": {
"address": "0x4200000000000000000000000000000000000006",
"chainId": 8453,
"decimals": 18,
"logo": "https://static.debank.com/image/coin/logo_url/eth/d61441782d4a08a7479d54aea211679e.png",
"price": "1831.4",
"symbol": "WETH",
"type": "ERC20",
"name": "Wrapped Ether"
}
}
]
}
]
}
}Retrieve a quote for zapping tokens across chains. Supports optional parameters for adding or removing liquidity.
curl --request POST \
--url https://zap.dzap.io/v1/quote \
--header 'Content-Type: application/json' \
--data '
{
"srcToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"srcChainId": 8453,
"destToken": "0xd0b53D9277642d899DF5C87A3966A349A798F224",
"destChainId": 8453,
"recipient": "0x99BCEBf44433E901597D9fCb16E799a4847519f6",
"slippage": 0.5,
"account": "0x99BCEBf44433E901597D9fCb16E799a4847519f6"
}
'{
"status": "success",
"data": {
"amountOut": "0",
"approvalData": {
"callTo": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"approveTo": "0x1d46863e3592745008b5CbbAC12014F67329A9b8",
"amount": "1680715"
},
"path": [
{
"action": "swap",
"protocol": {
"id": "dzap",
"name": "Dzap Aggregator",
"icon": "https://dzap.io/favicon.ico"
},
"input": [
{
"amount": "1680715",
"amountUSD": "1.68072",
"asset": {
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"chainId": 8453,
"decimals": 6,
"logo": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",
"price": "1",
"symbol": "USDC",
"name": "USD Coin",
"type": "ERC20"
}
}
],
"output": [
{
"amount": "918943376897193",
"minReturn": "918024433520296",
"amountUSD": "1.68295",
"asset": {
"address": "0x4200000000000000000000000000000000000006",
"chainId": 8453,
"decimals": 18,
"logo": "https://static.debank.com/image/coin/logo_url/eth/d61441782d4a08a7479d54aea211679e.png",
"price": "1831.4",
"symbol": "WETH",
"name": "Wrapped Ether",
"type": "ERC20"
}
}
],
"fee": [],
"estimatedDuration": 10,
"dust": []
},
{
"action": "deposit",
"protocol": {
"id": "uniswap",
"name": "Uniswap V3",
"icon": "https://app.uniswap.org/favicon.png"
},
"input": [
{
"amount": "917721515538050",
"amountUSD": "1.68072",
"asset": {
"address": "0x4200000000000000000000000000000000000006",
"chainId": 8453,
"decimals": 18,
"logo": "https://static.debank.com/image/coin/logo_url/eth/d61441782d4a08a7479d54aea211679e.png",
"price": "1831.4",
"symbol": "WETH",
"name": "Wrapped Ether",
"type": "ERC20"
}
},
{
"amount": "3319285",
"amountUSD": "3.31929",
"asset": {
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"chainId": 8453,
"decimals": 6,
"logo": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",
"price": "1",
"symbol": "USDC",
"name": "USD Coin",
"type": "ERC20"
}
}
],
"output": [
{
"amount": "0",
"minReturn": "0",
"amountUSD": "0.00000",
"asset": {
"address": "0xd0b53D9277642d899DF5C87A3966A349A798F224",
"chainId": 8453,
"decimals": 18,
"logo": "https://app.uniswap.org/favicon.png",
"price": "0",
"symbol": "Wrapped Ether/USD Coin",
"name": "Wrapped Ether/USD Coin v3 0.05%",
"type": "ERC721"
}
}
],
"fee": [
{
"amount": "9177215155380",
"amountUSD": "0.01681",
"asset": {
"address": "0x4200000000000000000000000000000000000006",
"chainId": 8453,
"decimals": 18,
"logo": "https://static.debank.com/image/coin/logo_url/eth/d61441782d4a08a7479d54aea211679e.png",
"price": "1831.4",
"symbol": "WETH",
"name": "Wrapped Ether",
"type": "ERC20"
}
},
{
"amount": "33192",
"amountUSD": "0.03319",
"asset": {
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"chainId": 8453,
"decimals": 6,
"logo": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",
"price": "1",
"symbol": "USDC",
"name": "USD Coin",
"type": "ERC20"
}
}
],
"estimatedDuration": 10,
"dust": [
{
"amount": "302917982246",
"minReturn": "302917982246",
"amountUSD": "0.00055",
"dust": true,
"asset": {
"address": "0x4200000000000000000000000000000000000006",
"chainId": 8453,
"decimals": 18,
"logo": "https://static.debank.com/image/coin/logo_url/eth/d61441782d4a08a7479d54aea211679e.png",
"price": "1831.4",
"symbol": "WETH",
"type": "ERC20",
"name": "Wrapped Ether"
}
}
]
}
]
}
}Source token address
"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
Source chain ID
8453
Destination token address
"0x4C36388bE6F416A29C8d8Eee81C771cE6bE14B18"
Destination chain ID
8453
Recipient address for the swapped tokens
"0x99BCEBf44433E901597D9fCb16E799a4847519f6"
Slippage tolerance in percentage
0.5
Account address initiating the zap
"0x99BCEBf44433E901597D9fCb16E799a4847519f6"
Amount to swap or liquidity to add/remove (optional)
"5000000"
Encoded permit2 data for ERC20 tokens (optional)
Optional position details for NFT-related operations
Show child attributes
Optional pool details for liquidity operations
Show child attributes
Optional list of allowed bridges for the swap
List of allowed bridge protocols
Optional list of allowed swap protocols for the swap
List of allowed swap protocols
Optional integrator fee configuration for earning fees on transactions
Show child attributes