POST
/
quotes
Get quotes for swap or bridge
curl --request POST \
  --url https://api.dzap.io/v1/quotes \
  --header 'Content-Type: application/json' \
  --data '{
  "account": "0x99BCEBf44433E901597D9fCb16E799a4847519f6",
  "fromChain": 42161,
  "integratorId": "dzap",
  "allowedSources": [],
  "data": [
    {
      "amount": "332999",
      "srcToken": "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
      "srcDecimals": 6,
      "destToken": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
      "destDecimals": 6,
      "slippage": 0.9,
      "toChain": 137
    }
  ]
}'
{
  "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"
          }
        }
      }
    }
  }
}

Body

application/json

Response

200
application/json

Successful response with quotes from multiple providers with pricing, fees, and route information.

The response is of type object.