Optimism erc20 allowance
optimism_erc20_allowanceERC-20 allowance on OP Mainnet: how much a spender may transfer from an owner, whether the approval is effectively unlimited, the owner's balance, and the amount the spender could move right now. Costs $0.005 USDC on Base via x402.
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": {
"token": "<token>",
"owner": "<owner>",
"spender": "<spender>"
},
"name": "optimism_erc20_allowance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Address that granted the approval | |
| token | Yes | ERC-20 contract on OP Mainnet | |
| spender | Yes | Address allowed to spend |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | string, e.g. "60000000" | |
| chain | No | string, e.g. "optimism" | |
| owner | No | string, e.g. "0x9B1e7350517c2C94a990e55aC6c20De37675c703" | |
| token | No | string, e.g. "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85" | |
| symbol | No | string, e.g. "USDC" | |
| spender | No | string, e.g. "0xFb4e4811C7A811E098A556bD79B64c20b479E431" | |
| allowance | No | string, e.g. "60" | |
| unlimited | No | boolean, e.g. false | |
| ownerBalance | No | string, e.g. "66.148476" | |
| spendableNow | No | string, e.g. "60" |