# Bittensor Subtensor Block Events

> Bittensor Subtensor Block Events is a paid API for AI agents from api.chainmarket-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-21).

Fetches events for a single Bittensor Subtensor blockchain block by block number, returning event count, block hash, parent hash, and raw SCALE-encoded System.Events bytes.

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/crypto/subtensor-block-events?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bittensor-subtensor-block-events-8e996f58
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TLJRZIJ0vQHBEi6cfFK02

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 bittensor-subtensor-block-events-8e996f58
```

Example prompt: Can you fetch the events for Bittensor Subtensor block number 3500000? I need the block hash, parent hash, event count, and the raw SCALE-encoded System.Events bytes.

## When to prefer this

Use this endpoint when you need raw on-chain event data from a specific Bittensor Subtensor block, including SCALE-encoded System.Events for custom decoding. Prefer this over generic blockchain explorers when you need machine-readable byte-level event data specific to the Subtensor network.

## Known failure modes

- 404 returned if the requested block number does not yet exist on the Subtensor chain
- Invalid or negative block number may cause a validation error
- Network or Cloudflare Worker timeout if the upstream Subtensor node is unreachable
- Malformed block number (non-integer) rejected by schema validation

## How this service works

Events of a single Bittensor Subtensor block by block number: event count, block hash, parent hash, and raw SCALE-encoded System.Events bytes. Returns 404 for a block that does not exist yet.

## Output

Returns the block number, event count, block hash, parent hash, and raw SCALE-encoded System.Events bytes for the requested Subtensor block. Returns a 404 error if the block does not yet exist on the chain.

## 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": [
      "block"
     ],
     "properties": {
      "block": {
       "type": "integer",
       "minimum": 0,
       "description": "Block number to retrieve events for"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bittensor-subtensor-block-events-8e996f58/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.chainmarket-api.workers.dev](https://www.zero.xyz/host/api.chainmarket-api.workers.dev/llms.txt)
