# Kaspa Recent Blocks Lookup

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

Returns metadata for the most recent 1–144 Kaspa BlockDAG blocks, including hash, timestamp, blue score, DAA score, transaction count, and selected-chain status.

## Facts

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

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-recent-blocks-lookup-de31ac9a
```

Example prompt: Pull the last 20 Kaspa blocks and show me their hashes, timestamps, blue scores, DAA scores, transaction counts, and whether each is on the selected chain.

## When to prefer this

Use this endpoint when you need recent Kaspa block-level detail — hashes, timestamps, blue scores, DAA scores, transaction counts, and chain selection status — for monitoring, analytics, or verification. Choose this over the general BlockDAG snapshot endpoint when you need per-block granularity rather than network-level aggregates.

## Known failure modes

- count parameter out of range (must be 1–144) returns a validation error
- upstream Kaspa node unavailable causes a 503 or timeout
- payment not attached or invalid returns 402 Payment Required
- malformed request returns 400 Bad Request

## How this service works

The most recent Kaspa blocks (count between 1 and 144): hash, block timestamp, blue score, DAA score, transaction count, and selected-chain status.

## Output

A list of up to 144 recent Kaspa block objects, each containing the block hash, block timestamp, blue score, DAA score, transaction count, and a boolean indicating selected-chain status.

## 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": {
      "count": {
       "type": "integer",
       "maximum": 144,
       "minimum": 1,
       "description": "Number of recent blocks to retrieve (1-144, default 5)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kaspa-recent-blocks-lookup-de31ac9a/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)
