ERC-20 allowance / approval check
chain_allowanceHow much of a token a spender (router, contract, x402 facilitator) is approved to move from an owner: allowance (or 'unlimited'), raw amount, whether any approval exists, the owner's balance and the amount spendable right now (min of both). Use before transferFrom/swaps, or to audit risky unlimited approvals. Price: $0.001 per call (USDC on Base via x402); the first 10 calls per day are 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": {
"owner": "<owner>",
"spender": "<spender>",
"token": "<token>"
},
"name": "chain_allowance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Chain (default base) | |
| owner | Yes | Token owner 0x… | |
| token | Yes | ERC-20 contract 0x… or 'usdc' | |
| spender | Yes | Spender 0x… |