# Tollex Wallet Allowance Check

> Tollex Wallet Allowance Check is a paid API for AI agents from api.tollex.org, paid per call via x402, $0.0079/call, status unknown (last checked 2026-10-11).

Queries the ERC-20 token allowance that a given spender address is permitted to spend on behalf of a wallet owner, within the Tollex agent payment infrastructure.

## Facts

- Endpoint: POST https://api.tollex.org/tools/wallet_allowance?utm_source=zero.xyz
- Price: $0.0079/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tollex-wallet-allowance-check-13a63176
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tnpaIDD9UM3hxjngpNb8t

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability tollex-wallet-allowance-check-13a63176 -d '<json body>'
```

Example prompt: What's the current USDC allowance that the Tollex spender contract at 0xABC...123 is approved to use from my wallet at 0xDEF...456 on the token at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913?

## When to prefer this

Use this endpoint when an AI agent needs to verify on-chain ERC-20 spending permissions within the Tollex payment infrastructure before executing or authorizing a micropayment. It is the right choice when you need a policy-checked, receipted allowance lookup rather than a raw on-chain RPC call, particularly for USDC on Base or USDG on Robinhood Chain in an agentic payment workflow.

## Known failure modes

- Invalid Ethereum address format for owner, token, or spender returns a 400 validation error
- Token contract address does not exist on the target chain returns an error or zero allowance
- Network connectivity issues to Base or Robinhood Chain result in a timeout
- Insufficient USDC balance to cover the $0.0078 query fee results in payment failure
- Unrecognized or unsupported token contract may return zero or null allowance

## How this service works

Tollex lets software agents buy APIs and tools under rules you set: it finds a capability that fits, checks your policy before anything is signed, pays with x402 in USDC on Base or USDG on Robinhood Chain, reconciles uncertain payments and returns a signed receipt.

## Output

Returns the approved token allowance amount (in the token's base units) that the specified spender address is authorized to transfer from the owner's wallet for the given ERC-20 token, along with a signed receipt confirming the query was processed through Tollex's infrastructure.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "owner": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{40}$"
  },
  "token": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{40}$"
  },
  "spender": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{40}$"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tool": {
   "id": "wallet_allowance",
   "version": "1.0.0",
   "provider": "tollex.robinhood-chain"
  },
  "result": {
   "owner": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
   "token": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
   "spender": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
   "allowance": "0",
   "unlimited": false
  },
  "evidence": [],
  "untrustedOutput": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tollex-wallet-allowance-check-13a63176/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.tollex.org](https://www.zero.xyz/host/api.tollex.org/llms.txt)
