# Kaspa GHOSTDAG Chain Color Density (Blue/Red Block Ratio)

> Kaspa GHOSTDAG Chain Color Density (Blue/Red Block 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-14).

Returns Kaspa DAG block color statistics — the ratio of blue (selected-chain) vs red (merged) blocks as a proxy for DAG stress and orphan rate.

## Facts

- Endpoint: GET https://api.carbon-cashmere.de/v1/kaspa-derivatives/chain-color
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kaspa-ghostdag-chain-color-density-blue-red-block-ratio-9f051b56
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mjW7EUxhnyQaVyRZRLLM8

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-ghostdag-chain-color-density-blue-red-block-ratio-9f051b56
```

Example prompt: Can you pull the current Kaspa GHOSTDAG blue/red block density stats so I can see what fraction of blocks are being orphaned (red) versus selected-chain (blue) right now?

## When to prefer this

Use this endpoint when you specifically need Kaspa GHOSTDAG block color statistics (blue vs red block ratio) as a proxy for DAG health, network stress, or orphan rate. Prefer this over generic price endpoints when the question is about Kaspa's consensus layer performance rather than market data.

## Known failure modes

- Upstream Kaspa node unavailable — 503 with no data
- Payment not processed — 402 Payment Required if x402 header missing or funds insufficient
- Rate limit exceeded — 429 Too Many Requests
- Transient network error — 500 Internal Server Error

## How this service works

Kaspa blue/red block density (GHOSTDAG): merged (red) vs selected-chain (blue) block share — DAG-stress / orphan-rate proxy. Informational research data — not investment advice.

## Output

Returns an object containing blue_blocks (selected-chain count), red_blocks (merged/orphaned count), total_blocks, and red_density (float 0–1 representing the fraction of red blocks) — a snapshot proxy for DAG congestion and orphan rate.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "red_blocks": {
       "type": "integer"
      },
      "blue_blocks": {
       "type": "integer"
      },
      "red_density": {
       "type": "number"
      },
      "total_blocks": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kaspa-ghostdag-chain-color-density-blue-red-block-ratio-9f051b56/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)
