get_allowance
Check how much of a token a spender can use on your behalf by querying ERC20 allowance on EVM networks.
Instructions
Check the allowance granted to a spender for a token. This tells you how much of a token an address can spend on your behalf.
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": {
"tokenAddress": "<tokenAddress>",
"spenderAddress": "<spenderAddress>"
},
"name": "get_allowance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokenAddress | Yes | The ERC20 token contract address | |
| spenderAddress | Yes | The address allowed to spend the token (usually a contract address) | |
| ownerAddress | No | The owner address (defaults to the configured wallet) | |
| network | No | Network name or chain ID. Defaults to Ethereum mainnet. |