ERC-20 token approval check on Base: check how much of a token a spender is approved to move on Base
base_allowanceCheck how much of a wallet's ERC-20 token a spender contract is approved to move on Base: the raw and formatted allowance, the token symbol and decimals, and whether the approval is unlimited. Use before a swap or deposit to see if an approve transaction is needed, and to audit a wallet for risky unlimited approvals. Price $0.002/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.
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 | Wallet address that holds the token (0x...) | |
| token | Yes | ERC-20 token contract address on Base (0x...) | |
| spender | Yes | Address allowed to spend, usually a router or protocol contract (0x...) |