ERC20 allowance
evm_erc20_allowanceUse when an agent is about to approve a spender, or is auditing what it approved before: how much of a token the spender may still move on the owner's behalf, raw and formatted with its decimals, plus unlimited, which flags a forgotten infinite approval. Do not use for what the wallet actually holds (/v1/evm/erc20-balance) or for whether the token is safe (/v1/evm/token-safety). No API key. $0.005 per call, paid over x402 (USDC).
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": {
"owner": "<owner>",
"spender": "<spender>",
"token": "<token>"
},
"name": "evm_erc20_allowance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | base | ethereum | polygon | arbitrum | optimism. | |
| owner | Yes | Address that owns the tokens. | |
| token | Yes | ERC20 contract address. | |
| spender | Yes | Address allowed to spend them. |