# ERC1155 Token Balance Lookup

> ERC1155 Token Balance Lookup is a paid API for AI agents from api.axiomworks.co.uk, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-12).

Returns how many copies of a specific ERC1155 token ID a wallet address holds, via balanceOf(address,uint256) eth_call.

## Facts

- Endpoint: GET https://api.axiomworks.co.uk/chain/erc1155-balance?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/erc1155-token-balance-lookup-8995f949
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ga3pPvVqiGLuIvvOEIVEM

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 erc1155-token-balance-lookup-8995f949
```

Example prompt: How many copies of token ID 1 does wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 hold in the ERC1155 contract 0x76be3b62873462d2142405439777e971754e8e77 on Ethereum?

## When to prefer this

Use this endpoint when you need a lightweight, single-call check of how many copies of a specific ERC1155 token ID a wallet holds, especially on Base, Ethereum, Arbitrum, Optimism, or Polygon. It is more targeted than a full NFT portfolio lookup — ideal for access gating, airdrop eligibility, or balance audits where you already know the contract, token ID, and holder address.

## Known failure modes

- Invalid contract address format returns a 400 error
- Invalid holder address format returns a 400 error
- Contract does not implement ERC1155 balanceOf — may return an error or unexpected result
- Unsupported chain value returns a validation error
- Balance of zero returned for wallets that simply don't hold the token (not an error)
- Network RPC timeout or unavailability causes a 500 or slow response
- Payment not provided or insufficient — returns 402 Payment Required

## How this service works

ERC1155 balance: how many copies of token_id a wallet holds, via balanceOf(address,uint256) (eth_call). Example: {contract:"0x…", address:"0x…", token_id:"1", chain:"base"}. $0.001.

## Output

Returns a JSON object containing the wallet's balance (as a string integer) for the specified token ID, plus confirming fields: chain name, chain ID, contract address, token ID, holder address, and the source call method (eth_call balanceOf(address,uint256)).

## 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",
      "token_id"
     ],
     "properties": {
      "chain": {
       "enum": [
        "base",
        "ethereum",
        "arbitrum",
        "optimism",
        "polygon"
       ],
       "type": "string",
       "description": "EVM chain (default base)"
      },
      "wallet": {
       "type": "string",
       "description": "Alias for address (owner wallet)"
      },
      "address": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "Holder"
      },
      "contract": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "ERC1155 contract"
      },
      "token_id": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "balance": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "ethereum",
  "source": "eth_call balanceOf(address,uint256)",
  "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  "balance": "0",
  "chain_id": 1,
  "contract": "0x76be3b62873462d2142405439777e971754e8e77",
  "token_id": "10229"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/erc1155-token-balance-lookup-8995f949/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.axiomworks.co.uk](https://www.zero.xyz/host/api.axiomworks.co.uk/llms.txt)
