# ChainQuery CDD Spike Classifier

> ChainQuery CDD Spike Classifier is a paid API for AI agents from intel.chainquery.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Classifies current Bitcoin Coin Days Destroyed (CDD) activity as normal, elevated, spike, or extreme using a z-score against a 30-day baseline

## Facts

- Endpoint: GET https://intel.chainquery.com/v1/cdd
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainquery-cdd-spike-classifier-7f19d71f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aR0jeHPOQsheozpC0pQbS

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 chainquery-cdd-spike-classifier-7f19d71f
```

Example prompt: What's the current Bitcoin Coin Days Destroyed reading — is it normal, elevated, a spike, or extreme? Give me the z-score against the 30-day baseline too.

## When to prefer this

Choose this endpoint when you need a fast, pre-computed classification of Bitcoin holder movement intensity (CDD) rather than raw UTXO data. Ideal for agents monitoring Bitcoin market stress signals, detecting distribution events by long-term holders, or triggering alerts based on on-chain anomalies. Requires no API key — only a micropayment via x402.

## Known failure modes

- Payment not received or x402 flow incomplete — returns 402 Payment Required
- Bitcoin node data lag causing stale timestamp
- Insufficient recent block data to compute 30-day baseline
- Network timeout reaching the ChainQuery backend
- Invalid HTTP method used (only GET supported)

## How this service works

ChainQuery Bitcoin Intelligence: independent Bitcoin-native on-chain data over x402, no API key. Coin Days Destroyed (CDD) spike classifier (state normal/elevated/spike/extreme + z-score vs 30-day baseline).

## Output

Returns the current CDD state classification (one of: normal, elevated, spike, or extreme), the z-score measuring deviation from the 30-day baseline, and a data freshness timestamp indicating when the on-chain data was last updated.

## 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": {
      "as_of": {
       "description": "data freshness timestamp"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainquery-cdd-spike-classifier-7f19d71f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.chainquery.com](https://www.zero.xyz/host/intel.chainquery.com/llms.txt)
