get ERC20 Allowance - Enhanced APIs

Retrieve erc20 token allowance.

This endpoint is supported on the following chains and networks:

  • Conflux: Core
  • Ethereum

Parameters

  • address: [string] erc20 token address(required)
  • owner:[string] erc20 token owner
  • spender:[string]

Returns

  • allowance: [string]

Example

Request

curl --location --request GET 'https://eth-mainnet.unifra.io/v1/de06bac5217b49c3af79fd3aeb06a87b/enhanced-api/erc20/0xF629cBd94d3791C9250152BD8dfBDF380E2a3B9c/allowance?spender=0x1dd0C7cBF5b420648Fe37EDCdc64cBE30842E3b2&owner=0x94a70782521004d2857e1809de8f264f84ffc00d'

Response

{
    "allowance": "199999951067031540000000000"
}
Language
Click Try It! to start a request and see the response here!