ERC-20 allowance ($0.001)
lookup_allowancePAID $0.001 USDC. How much of a token a spender is approved to move from an owner. Requires contract, owner and spender; optional chain= (default ethereum). Returns JSON for allowance(owner, spender) on that ERC-20 contract.
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": {
"contract": "<contract>",
"owner": "<owner>",
"spender": "<spender>"
},
"name": "lookup_allowance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Single chain. Format: a chain slug such as ethereum or base. Example: ethereum. Default: ethereum, as the existing tool text states. | |
| owner | Yes | Wallet that granted the allowance. Format: 0x followed by 40 hex characters. Example: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045. Required. | |
| api_key | No | Optional payment credential. Format: a prepaid key sk_scrapling_... or a catalog pass token sdp_... from pass_day or pass_month. Example: sdp_... . When omitted on a paid tool, the call is unpaid and the server answers with x402 PaymentRequired; retry the same call with the signed payment in params._meta['x402/payment']. | |
| spender | Yes | Address allowed to spend. Format: 0x followed by 40 hex characters. Example: 0x000000000022D473030F116dDEE9F6B43aC78BA3. Required. | |
| contract | Yes | ERC-20 contract. Format: 0x followed by 40 hex characters. Example: 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48. Required. |