# Kaspa Block Detail by Hash

> Kaspa Block Detail by Hash 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 detailed metadata for a single Kaspa block identified by its 64-character hex hash, including DAG structure, timestamps, difficulty, and chain status.

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/crypto/kaspa-block?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/kaspa-block-detail-by-hash-d5afc873
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_h5DfLo023QByjCahJZ7DY

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 kaspa-block-detail-by-hash-d5afc873
```

Example prompt: Pull up the full block details for Kaspa block hash 3a7f9e2b1c6d4e8f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f — I want to see the blue score, DAA score, whether it's a chain block, and how many transactions it contains.

## When to prefer this

Use this endpoint when you need granular, per-block detail for a specific Kaspa block identified by its hash — including DAG-specific fields like blue score, merge set blues/reds, and isChainBlock status that are unique to Kaspa's BlockDAG architecture. Prefer it over general Kaspa network endpoints when you already have a block hash and need to inspect its structure, validate its chain inclusion, or trace DAG relationships.

## Known failure modes

- 404 Not Found if the provided hash does not correspond to any known block
- 400 Bad Request if the hash is not exactly 64 hexadecimal characters
- Network timeout if the Kaspa node is temporarily unreachable
- Empty merge set arrays if the block has no blues or reds (e.g. genesis block)

## How this service works

Detailed Kaspa block by 64-character hex hash: timestamp, blue score, DAA score, parents, children, merge set blues/reds, transaction count, difficulty, and selected chain status (isChainBlock). Returns 404 if block is not found.

## Output

Returns a JSON object containing the block's timestamp, blue score, DAA score, array of parent block hashes, array of child block hashes, merge set blues (list of block hashes), merge set reds (list of block hashes), transaction count, mining difficulty, and isChainBlock boolean indicating whether it is part of the selected chain. Returns HTTP 404 if the block hash is not found.

## 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": [
      "hash"
     ],
     "properties": {
      "hash": {
       "type": "string",
       "pattern": "^[0-9a-fA-F]{64}$",
       "description": "64-character lowercase hex hash of the block"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kaspa-block-detail-by-hash-d5afc873/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)
