evm_get_allowance
Retrieves the ERC-20 allowance granted by an owner to a spender for a token contract. Input the token and spender addresses to get the approved spending amount on any chain.
Instructions
Get ERC-20 allowance from owner to spender for a token contract.
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": "evm_get_allowance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | No | Chain ID (defaults to runtime config) | |
| ownerAddress | No | Owner wallet address (defaults to active wallet when available) | |
| tokenAddress | Yes | ERC-20 token contract address | |
| spenderAddress | Yes | Approved spender address |