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
    • Schemas
      • Schemas
        • types.Protocols
        • sources.Source
        • api.BridgedToken
        • BridgeRoutes
        • api.TokensResponse
        • api.TokenFilter
        • api.Token
        • api.SourcesAPIWrapped
        • api.SourceFilter
        • api.PlatformsAPIWrapped
        • api.PlatformsAPI
        • api.OnChainQuoteResponseAPI
        • api.OnChainPriceResponseAPI
        • api.ListTokenRequest
        • api.GasPriceInfoAPIWrapped
        • api.GasPriceAPIWrapped
        • api.FeeResp
        • api.ApproveResponse
        • api.AllowanceResponse
        • BridgePrice
        • BridgeQuote
        • QuoteDto
    SiteDocs
    SiteDocs

      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