# Kaspa BlockDAG Topology Snapshot

> Kaspa BlockDAG Topology Snapshot is a paid API for AI agents from api.carbon-cashmere.de, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Returns a real-time snapshot of the Kaspa BlockDAG state including tips, sink block, virtual chain parents, pruning point, blue scores, difficulty, and sync status.

## Facts

- Endpoint: GET https://api.carbon-cashmere.de/v1/kaspa-derivatives/dag-state
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-carbon-cashmere-de-2718af00
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ekXuPip2kmYoJEzfy0lAe

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 api-carbon-cashmere-de-2718af00
```

Example prompt: What's the current Kaspa BlockDAG state right now — how many tips are there, is the node synced, and what are the current blue score and pruning point?

## When to prefer this

Use this endpoint when you need a real-time snapshot of the Kaspa BlockDAG topology, particularly for monitoring DAG health, detecting side-branch proliferation, verifying node sync state, tracking blue scores over time, or confirming pruning point progression. Prefer over generic Kaspa network stats endpoints when you specifically need tip hashes, virtual chain parent count, or DAA score.

## Known failure modes

- Node temporarily offline — returns 503 or timeout if the underlying Rusty Kaspa node is unreachable
- Rate limit exceeded — returns 429 if too many requests in a short period
- Payment failure — returns 402 if x402 payment not provided or invalid
- Stale data — node may lag behind network tip during heavy DAG activity

## How this service works

Kaspa BlockDAG topology snapshot: tips, sink, virtual chain, pruning point, blue scores. For DAG-state monitoring, side-branch detection, sync verification.

## Output

Returns a JSON object with timestamp, sink block (hash and blue score), virtual chain (parent count and DAA score), sync status, tip count, tip hashes array, difficulty, block count, header count, and pruning point (hash and blue score). All data is live from a Rusty Kaspa full node.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {}
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "sink": {
   "hash": "213f5a47...",
   "blue_score": 434240122
  },
  "virtual": {
   "parents": 5,
   "daa_score": 436119722
  },
  "is_synced": true,
  "tip_count": 5,
  "block_count": 1376421
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-carbon-cashmere-de-2718af00/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.carbon-cashmere.de](https://www.zero.xyz/host/api.carbon-cashmere.de/llms.txt)
