get_token_allowance_evm
Retrieve the approved ERC20 token allowance a spender has from an owner's wallet, returning the amount in base units. Use this to check spending limits before transactions.
Instructions
Get the allowance of an ERC20 token for a spender (returns amount in base units)
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>",
"owner": "<owner>",
"spender": "<spender>"
},
"name": "get_token_allowance_evm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | The address of the token owner. | |
| chainId | No | Optional EVM chain ID to run this tool on (e.g. 1 for Ethereum, 8453 for Base, 42161 for Arbitrum). Defaults to the active wallet chain. | |
| spender | Yes | The address of the potential spender. | |
| tokenAddress | Yes | The contract address of the ERC20 token. |