On this page

latest contributor to this doc

Last Edit:

@smk762

Get Token Allowance

API-v2get_token_allowance

The get_token_allowance method returns token allowance for address.

Refer to the 1inch Classic Swap documentation for more information.

ParameterTypeRequiredDescription
coinstringToken ticker
spenderstringSmart contract address to query spendable coins amount granted prior approval

ParameterTypeDescription
resultfloatAmount of coins approved for spending via the smart contract (in coins units).

POST
get_token_allowance
{
  "mmrpc": "2.0",
  "userpass": "RPC_UserP@SSW0RD",
  "method": "get_token_allowance",
  "params": {
    "coin": "AAVE-PLG20",
    "spender": "0x083C32B38e8050473f6999e22f670d1404235592"
  }
}