On this page

latest contributor to this doc

Last Edit:

@smk762

get_token_allowance

The get_token_allowance method returns token allowance for address.

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

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

StructureTypeDescription
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"
  }
}