Eth erc20 allowance
eth_erc20_allowanceERC-20 allowance on Ethereum: 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": "eth_erc20_allowance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Address that granted the approval | |
| token | Yes | ERC-20 contract on Ethereum | |
| spender | Yes | Address allowed to spend |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | string, e.g. "11579208923731619542357098500868790785326998466564056403945 | |
| chain | No | string, e.g. "eth" | |
| owner | No | string, e.g. "0x72aB1B98b60a9251Cc00ab1C3bBe9F48CdFdCA40" | |
| token | No | string, e.g. "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" | |
| symbol | No | string, e.g. "USDC" | |
| spender | No | string, e.g. "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE" | |
| allowance | No | string, e.g. "11579208923731619542357098500868790785326998466564056403945 | |
| unlimited | No | boolean, e.g. true | |
| ownerBalance | No | string, e.g. "0" | |
| spendableNow | No | string, e.g. "0" |