check_allowance
Check token allowance for a spender on ERC20/TRC20 networks, with optional comparison to a required amount to verify sufficient approval.
Instructions
Check ERC20/TRC20 allowance for a spender, optionally against a required amount.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"token": "<token>",
"spender": "<spender>"
},
"name": "check_allowance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | Token contract address | |
| spender | Yes | Spender contract or proxy address | |
| owner | No | Optional owner address; defaults to configured wallet | |
| amount | No | Optional human-readable amount to compare against | |
| decimals | No | Optional token decimals override | |
| network | No | Target network. Default: tron |