get_token_allowance
The get_token_allowance
method returns token allowance for address.
Refer to the 1inch Classic Swap documentation for more information.
Structure | Type | Description |
---|---|---|
coin | string | Token ticker |
spender | string | Smart contract address to query spendable coins amount granted prior approval |
Structure | Type | Description |
---|---|---|
result | float | Amount 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"
}
}