account

Get User Allowance

Beta <br/> Retrieves the approved allowance for a specific ERC-20 token, indicating how many tokens a designated spender is authorized to withdraw from an owner’s wallet. It is especially useful for verifying spending limits before initiating transactions, ensuring that decentralized applications or swap interfaces can confirm the available allowance for token transfers.

💡 Compute Unit Value: 60 (Fixed)

get/account/v1/allowance

Request

  • Base URL
    https://svc.blockdaemon.com
  • URL
    https://svc.blockdaemon.com/account/v1/allowance
  • Auth
    API key in header X-API-Key

Query parameters

tokenAddressstring required

Address of the token whose allowance is being queried.

Example:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
ownerstring required

Public address of the owner of the tokens.

Example:0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402
spenderstring required

Public address of the spender authorized to withdraw tokens on the owner's behalf.

Example:0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
chainId'1' | '56' | '43114' | '137' | '250' | '10' | '11155420' | '42161' | '421614' | '25' | '338' | '84532' | '8453' | '43113' | '97' | '80002' | '300' | '324' | '5000' | '5003' | '8217' | '1001'

The unique ID to direct queries or transactions to the correct blockchain. Find more here.

Example:1
chainSymbolstring

The abbreviated chain name for queries or transactions.

Example:ETH
vsCurrenciesstring

A comma-separated list of currency symbols to convert the amount into, such as 'USD,EUR'. This parameter is optional and allows retrieving values in multiple fiat currencies.

Example:usd,eur,gbp

Response

Successful response

statusnumber

Numeric status code indicating success or failure of the API call

msgstring

Human-readable message describing the API result or error

Example response

{
  "status": 200,
  "msg": "success",
  "data": {
    "allowance": "999999999900000",
    "prices": {
      "usd": [
        {
          "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t": "1.0004708182757556"
        }
      ]
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.