# LogicNodes EVM Token Allowance

> LogicNodes EVM Token Allowance is a paid API for AI agents from logicnodes.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-30).

Queries the ERC-20 token allowance granted by an owner address to a spender address on any supported EVM chain at a specified block

## Facts

- Endpoint: POST https://logicnodes.io/paid/v1/tools/evm_allowance?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/logicnodes-evm-token-allowance-a26d4fa7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MlKGI_66PT2TAsyY42XBE

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 logicnodes-evm-token-allowance-a26d4fa7 -d '<json body>'
```

Example prompt: Check the USDC allowance that my wallet 0xAbCd...1234 has granted to the Uniswap v3 router 0xE592...4bE8 on Base (eip155:8453) at the latest block.

## When to prefer this

Use this endpoint when you need an exact, on-chain ERC-20 allowance value for a specific owner/spender/token triple on an EVM chain. Prefer it over general RPC calls or blockchain explorers when you need a structured, agent-friendly JSON response with CAIP-2 chain support, historical block queries, and pay-per-call pricing with no API key setup. It is especially useful in DeFi automation workflows where you need to verify approvals before executing transactions.

## Known failure modes

- Invalid or non-checksummed address returns a validation error
- Chain name strings (e.g. 'base') rejected — must use CAIP-2 format like eip155:8453
- Unsupported chain ID returns an error
- Non-existent or non-ERC-20 token contract may return zero or error
- Block number beyond chain tip returns an error
- Malformed owner/spender/token hex addresses rejected
- Payment failure (x402) results in 402 response before tool execution

## How this service works

Exact answers for AI agents: 40+ tools for EVM chains and Aptos, gas on 14 chains, never a guess. Free tier; pay per call in USDC (x402) on 13 networks.

## Output

Returns a JSON object with ok: true, the tool name 'evm_allowance', and the numeric allowance amount the spender is permitted to transfer on behalf of the owner for the specified ERC-20 token, as read at the requested block on the specified EVM chain.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "block": {
   "type": "string",
   "description": "\"latest\" (default), \"safe\", \"finalized\", or a decimal block number. Every value in the answer is read at this one block"
  },
  "chain": {
   "type": "string",
   "description": "EVM CAIP-2 chain id such as eip155:8453, or a bare chain id number as a string. Chain names are refused."
  },
  "owner": {
   "type": "string",
   "description": "0x + 40 hex digits (EIP-55 checksum enforced when mixed-case)"
  },
  "token": {
   "type": "string",
   "description": "0x + 40 hex digits (EIP-55 checksum enforced when mixed-case)"
  },
  "spender": {
   "type": "string",
   "description": "0x + 40 hex digits (EIP-55 checksum enforced when mixed-case)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "evm_allowance"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/logicnodes-evm-token-allowance-a26d4fa7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from logicnodes.io](https://www.zero.xyz/host/logicnodes.io/llms.txt)
