# Kaspa BlockDAG Network Stats API

> Kaspa BlockDAG Network Stats API 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 live Kaspa BlockDAG network statistics from a self-hosted Rusty Kaspa node, including block count, hashrate, difficulty, mempool size, peer count, and sync state.

## Facts

- Endpoint: GET https://api.carbon-cashmere.de/v1/kaspa/network
- 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-e4010bc5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nTkuqqU3JEN5l_76u7ChG

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

Example prompt: What are the current Kaspa BlockDAG network stats right now — hashrate, difficulty, block count, mempool size, peer count, and whether the network is synced?

## When to prefer this

Use this endpoint when you need live, first-party Kaspa BlockDAG network health data from a self-hosted node rather than a third-party API, or when you need Kaspa-specific metrics like BlockDAG throughput (blocks per second), real-time hashrate in TH/s, and mempool depth for network monitoring or analysis pipelines.

## Known failure modes

- Node temporarily out of sync — is_synced may return false
- Node connectivity issues causing 5xx errors
- Rate limiting or payment failure (402) if USDC payment not supplied
- Stale data if the node is behind the network tip

## How this service works

Professional crypto market intelligence. Real-time prices, signals, and market scoring.

## Output

Returns a JSON object with timestamp, source node identifier, sync status (is_synced boolean), difficulty, peer_count, block_count, header_count, mempool_size, hashrate in TH/s, and blocks_per_second — all sourced live from a self-hosted Rusty Kaspa 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": {
  "source": "own_rusty_kaspa_node",
  "is_synced": true,
  "peer_count": 85,
  "block_count": 98000000,
  "mempool_size": 150,
  "hashrate_thash": 401.2,
  "blocks_per_second": 10
 }
}
```

## More

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