# Kaspa BlockDAG State Snapshot

> Kaspa BlockDAG State Snapshot 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-02).

Returns a real-time snapshot of the Kaspa BlockDAG network state including block count, header count, tip hashes, virtual DAA score, difficulty, pruning point, past median time, and sink hash.

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/crypto/kaspa-dag-state?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kaspa-blockdag-state-snapshot-2375a2ee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_anDY3cir4xzvYhRKYYM2o

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-blockdag-state-snapshot-2375a2ee
```

Example prompt: Can you pull the latest Kaspa BlockDAG state for me — I need the current block count, difficulty, virtual DAA score, tip hashes, and sink hash right now?

## When to prefer this

Choose this endpoint when you need a single comprehensive snapshot of the Kaspa BlockDAG network state in one call, rather than querying individual Kaspa node RPC methods separately. Ideal for dashboards, monitoring agents, or sync-verification workflows that need multiple network parameters (difficulty, DAA score, tip hashes, pruning point) simultaneously without running multiple queries.

## Known failure modes

- Kaspa node unavailability causing stale or empty response
- Network timeout if the upstream Kaspa node is slow
- Payment failure (402) if USDC balance is insufficient for the $0.002 per-call fee
- Rate limiting if too many requests are made in quick succession

## How this service works

Kaspa BlockDAG snapshot: network name, block count, header count, tip hashes, virtual DAA score, difficulty, pruning point, past median time, and sink hash.

## Output

Returns a JSON object with the Kaspa BlockDAG network snapshot including: network name, total block count, header count, array of tip hashes, virtual DAA score, current mining difficulty, pruning point hash, past median time (Unix timestamp), and sink hash.

## 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": [],
     "properties": {}
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kaspa-blockdag-state-snapshot-2375a2ee/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)
