getTokenAllowance
Retrieve the ERC-20 token allowance that a spender is authorized to use from an owner's balance. Provide token contract, owner, and spender addresses to query the approved amount.
Instructions
Get the ERC-20 token allowance a spender has been granted by an owner
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": {
"contract": "<contract>",
"owner": "<owner>",
"spender": "<spender>"
},
"name": "getTokenAllowance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Network ID. Call listSupportedNetworks for all options. e.g. "eth-mainnet", "base-mainnet" | eth-mainnet |
| contract | Yes | The token contract address. | |
| owner | Yes | The address of the token owner. | |
| spender | Yes | The address of the spender. |