ERC-20 Allowance
erc20_allowanceHow much a spender (router, Permit2, protocol) is approved to move from an owner's ERC-20 balance, with an unlimited-approval flag. Use to check approvals before a swap or to audit risky approvals.
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>",
"owner": "<owner>",
"spender": "<spender>"
},
"name": "erc20_allowance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | ethereum | |
| owner | Yes | ||
| token | Yes | ||
| spender | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |