base_allowance
ERC-20 allowance check on Base: how much a spender is still approved to move from an owner's token balance, and whether the approval is unlimited. Run before a swap, an approve or a revoke. Input: token, owner, spender. Price: $0.002 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": "base_allowance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | ||
| token | Yes | ||
| spender | Yes |