# Kaspa BlockDAG Chain Density Ratio

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

Returns Kaspa chain-blocks (selected-parent chain) vs total DAG blocks per hour to measure BlockDAG branching activity and detect DAG-mode shifts

## Facts

- Endpoint: GET https://api.carbon-cashmere.de/v1/kaspa-derivatives/chain-density
- Price: $0.05/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-c7ed93bc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AVzP5jfFZf4EZ4WeSRviP

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-c7ed93bc
```

Example prompt: What's the current Kaspa BlockDAG chain density right now — show me the ratio of selected-parent chain blocks to total DAG blocks per hour so I can see if there's any branching activity or DAG-mode shift happening?

## When to prefer this

Choose this endpoint when researching Kaspa-specific BlockDAG dynamics, particularly when you need the unique chain-to-total-block ratio signal that measures branching activity — not available from standard Kaspa block explorers. Ideal for DAG-protocol researchers tracking DAG-mode transitions or studying Kaspa network structure over time.

## Known failure modes

- Node connectivity issue: Rusty Kaspa node unreachable, returns 503
- Rate limit exceeded: too many requests in short window
- Payment not processed: x402 payment required, returns 402 if USDC not provided
- Data temporarily unavailable: node syncing or behind chain tip
- Invalid request parameters: returns 400 with error details

## How this service works

Kaspa chain-blocks (selected-parent chain) vs total DAG blocks per hour. Unique signal not available from generic block-explorer APIs — measures BlockDAG branching activity. Chain ratio drift signals DAG-mode shifts.

## Output

Returns chain-blocks count on the selected-parent chain per hour, total DAG block count per hour, the computed chain density ratio, and signals indicating whether DAG-mode shifts or unusual branching activity are occurring on the Kaspa network.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "window": "24h",
  "summary": {
   "chain_ratio": 0.9735,
   "chain_blocks": 84112,
   "total_blocks": 86400,
   "blocks_per_hour_avg": 3600
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-carbon-cashmere-de-c7ed93bc/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)
