# ERC1155 Balance for One Owner and Token ID

> ERC1155 Balance for One Owner and Token ID is a paid API for AI agents from twin.unykorn.org, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-01).

Returns the balance of a specific ERC1155 token ID held by a given owner address on a supported EVM chain

## Facts

- Endpoint: POST https://twin.unykorn.org/erc1155-balance?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/erc1155-balance-for-one-owner-and-token-id-64ece068
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4U7owZqAj-qoYXZi3lEAR

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-balance-for-one-owner-and-token-id-64ece068 -d '<json body>'
```

Example prompt: What is the ERC1155 balance for owner 0xAbC1234567890AbC1234567890AbC1234567890Ab on contract 0xDef9876543210DeF9876543210DeF9876543210dE for token ID 42 on Base?

## When to prefer this

Choose this endpoint when you need to query the balance of a specific ERC1155 token ID for a single owner on one of the ten supported EVM chains (Ethereum, Base, Polygon, Arbitrum, Optimism, BSC, Avalanche, Gnosis, Linea, Scroll). It is a pay-per-call API ideal for agents that need on-demand, real-time ERC1155 balance lookups without managing their own RPC infrastructure. Prefer it over general-purpose RPC calls when you want a simple REST interface with built-in payment receipts.

## Known failure modes

- Invalid owner or contract address (not matching 0x + 40 hex chars) returns validation error
- Unsupported chain name outside the allowed enum returns error
- Token ID below 0 returns schema validation error
- Contract address that is not a deployed ERC1155 contract may return zero or error
- Network RPC timeouts may cause delayed or failed responses
- Insufficient x402 payment causes 402 Payment Required rejection

## How this service works

ERC1155 balance for one owner and token id — Genesis402 / UnyKorn Operator Network

## Output

Returns a JSON object with ok status, the balance (implicitly via the type 'erc1155-balance'), a payment receipt including tx hash, USD amount paid, and receipt ID, plus a generated_at ISO8601 timestamp. Note: the example response schema shows receipt metadata but the actual token balance value would be included in the full response body.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "params": {
   "type": "object",
   "properties": {
    "chain": {
     "enum": [
      "ethereum",
      "base",
      "polygon",
      "arbitrum",
      "optimism",
      "bsc",
      "avalanche",
      "gnosis",
      "linea",
      "scroll"
     ],
     "type": "string"
    },
    "owner": {
     "type": "string",
     "pattern": "^0x[0-9a-fA-F]{40}$"
    },
    "tokenId": {
     "type": "integer",
     "minimum": 0
    },
    "contract": {
     "type": "string",
     "pattern": "^0x[0-9a-fA-F]{40}$"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "type": "erc1155-balance",
  "receipt": {
   "tx_hash": "0x<64hex>",
   "amount_usd": 0.003,
   "receipt_id": "g402-<16hex>"
  },
  "generated_at": "<iso8601>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/erc1155-balance-for-one-owner-and-token-id-64ece068/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twin.unykorn.org](https://www.zero.xyz/host/twin.unykorn.org/llms.txt)
