# ERC-1155 Token Balance Lookup

> ERC-1155 Token Balance Lookup is a paid API for AI agents from agent402.tools, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns the balance (quantity) of a specific ERC-1155 token ID held by a given wallet address on a specified EVM chain

## Facts

- Endpoint: GET https://agent402.tools/api/chain/erc1155-balance
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/erc-1155-token-balance-lookup-8d3d0a4c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-XzpUp_kY3wSU_JuZ3RDu

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 erc-1155-token-balance-lookup-8d3d0a4c
```

Example prompt: How many of token ID 42 does the wallet 0xabf4fabd7c416fb67202e5f9002389fc75e2a9d0 hold in the ERC-1155 contract 0x2953399124f0cbb46d2cbacd8a89cf0599974963 on Polygon?

## When to prefer this

Use this endpoint when you need to query the quantity of a specific ERC-1155 multi-token ID held by a wallet on Ethereum, Base, Polygon, Arbitrum, or Optimism. Prefer this over ERC-721 balance checks when the token standard is ERC-1155 (multi-token, where balances are quantities not single ownership). Ideal for game item gating, edition pass verification, or any scenario requiring knowledge of how many units of a specific token ID a wallet holds.

## Known failure modes

- Invalid contract address returns an error or zero balance
- Contract address is not an ERC-1155 contract — call may fail or return unexpected data
- Invalid wallet address format returns a validation error
- Unsupported network name returns an error
- Token ID not found in contract returns balance of '0'
- Rate limiting or payment failure results in HTTP 402 response

## How this service works

How many of one ERC-1155 token id an account holds, read straight from the contract. ERC-1155 is the multi-token standard behind most game items, editions and passes, where a single contract holds many ids and a balance is a quantity rather than ownership of one thing. Returns the balance as a decimal string. EVM chains: ethereum, base, polygon, arbitrum, optimism.

## Output

Returns a JSON object containing the wallet address, ERC-1155 contract address, token ID, network name, and the token balance as a decimal string (e.g. '5' meaning the address holds 5 units of that token ID)

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "contract",
      "address",
      "tokenId"
     ],
     "properties": {
      "address": {
       "type": "string",
       "description": "0x holder address"
      },
      "network": {
       "type": "string",
       "description": "ethereum | base | polygon | arbitrum | optimism (default base)"
      },
      "tokenId": {
       "type": "string",
       "description": "Token id, decimal or 0x hex"
      },
      "contract": {
       "type": "string",
       "description": "0x ERC-1155 contract address"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "contract",
      "address",
      "tokenId",
      "network",
      "balance"
     ],
     "properties": {
      "address": {
       "type": "string"
      },
      "balance": {
       "type": "string"
      },
      "network": {
       "type": "string"
      },
      "tokenId": {
       "type": "string"
      },
      "contract": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "address": "0xabf4fabd7c416fb67202e5f9002389fc75e2a9d0",
  "balance": "0",
  "network": "polygon",
  "tokenId": "1",
  "contract": "0x2953399124f0cbb46d2cbacd8a89cf0599974963"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/erc-1155-token-balance-lookup-8d3d0a4c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
