YAD
SiteDocs
SiteDocs
    • Introduction
    • Blockchains
      GET
    • List tokens
      POST
    • Liquidity sources
      GET
    • Gas prices
      GET
    • Get price for pair
      GET
    • Transaction allowance
      GET
    • Transaction approve
      GET
    • Get quote for pair
      GET
    • Get Bridge Price
      GET
    • Get Bridge Quote
      GET
    • Get Bridge Tokens
      POST

      Get Bridge Quote

      Developing
      GET
      https://api.entrswap.io/v2/bridge/quote
      Provides a quote for bridging assets between chains.

      Request

      Authorization
      Add parameter in header
      X-API-Key
      Example:
      X-API-Key: ********************
      Query Params

      Request Code Samples

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request GET 'https://api.entrswap.io/v2/bridge/quote?fromChainId=1&fromTokenAddress=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48&toChainId=137&toTokenAddress=0xc2132D05D31c914a87C6611C10748AEb04B58e8F&amount=100000000&takerAddress=' \
      --header 'X-API-Key: <api-key>'

      Responses

      🟢200Success
      application/json
      Body

      Example
      {
          "amount_out_total": "string",
          "bridge_fee": "string",
          "calldata": "string",
          "calldata_error": "string",
          "estimate_gas_total": "string",
          "fee_percent": 0,
          "fee_recipient": "string",
          "fee_amount": "string",
          "from_chain_id": 0,
          "to_chain_id": 0,
          "gas_price": "string",
          "recipient": "string",
          "token_in": "string",
          "token_out": "string",
          "to": "string",
          "routes": {
              "amount_in": "string",
              "amount_out": "string",
              "percent": 0,
              "protocol_name": "string",
              "type": "string"
          }
      }
      Modified at 2025-02-24 14:11:28
      Previous
      Get Bridge Price
      Next
      Get Bridge Tokens