# Kaspa Mining Economics API

> Kaspa Mining Economics API is a paid API for AI agents from api.chainmarket-api.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-21).

Returns real-time Kaspa mining economics including block reward, daily network emission, revenue per TH/s in KAS and USD, and current KAS spot price.

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/crypto/kaspa-mining-economics?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kaspa-mining-economics-api-a8c04774
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3_BbulluQKLC4DCm6U24x

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-mining-economics-api-a8c04774
```

Example prompt: What are the current Kaspa mining economics — block reward, daily network emission, revenue per TH/s in both KAS and USD, and the current KAS spot price?

## When to prefer this

Use this endpoint when you need a single, consolidated snapshot of Kaspa mining economics — block reward, emission schedule, and per-TH/s revenue in both KAS and USD — rather than piecing together data from multiple sources. Especially useful for mining profitability dashboards, automated miner management agents, or comparing Kaspa economics against other proof-of-work coins.

## Known failure modes

- Upstream price feed unavailable leading to stale or missing USD values
- Network congestion causing timeout on the Cloudflare Worker
- Invalid or empty response if Kaspa node data is temporarily unavailable
- Payment required error (HTTP 402) if x402 payment header is not included

## How this service works

Kaspa mining economics: current block reward (KAS), nominal blocks per day (864,000 at 10 blocks/s), daily network emission (KAS), revenue per TH/s per day in KAS and USD, and current spot price.

## Output

Returns a JSON object containing: current KAS block reward, nominal blocks per day (864,000 at 10 blocks/s), daily network emission in KAS, revenue per TH/s per day expressed in both KAS and USD, and the current KAS spot price.

## 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-mining-economics-api-a8c04774/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)
