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

      Transaction allowance

      GET
      https://api.entrswap.io/v1/{chainID}/transaction/allowance
      Checks how many of the user's tokens the exchange smart contract has access to.

      Request

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

      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/v1/1/transaction/allowance?tokenAddress&walletAddress' \
      --header 'X-API-Key: <api-key>'

      Responses

      🟢200OK
      application/json
      Body

      Example
      {
          "remaining": "123"
      }
      Modified at 2024-05-21 13:56:22
      Previous
      Get price for pair
      Next
      Transaction approve