# BTC Ordinals Inscription Flow

> BTC Ordinals Inscription Flow 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-02).

Returns Bitcoin Ordinals inscription activity (new inscriptions and transfers) for the last N blocks, with totals, per-block/per-hour rates, and a sample of recent events.

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/crypto/btc-ordinals-flow?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/btc-ordinals-inscription-flow-878ce95c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OCepTklUTfSfpCGKkJiOr

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 btc-ordinals-inscription-flow-878ce95c
```

Example prompt: What's the current Bitcoin Ordinals inscription activity? Pull stats for the last 12 blocks — I want to see the total inscription events, the per-block and per-hour rates, and a sample of recent events.

## When to prefer this

Use this endpoint when you need a quick, aggregated view of Bitcoin Ordinals inscription and transfer volume over recent blocks, including rate metrics (per-block, per-hour) and event samples. Prefer it over raw blockchain explorers when you want structured, pre-computed analytics without parsing raw mempool or block data yourself.

## Known failure modes

- Missing or invalid UNISAT_API_KEY returns 401 unauthorized
- blocks parameter outside 1-144 range returns a validation error
- UniSat upstream API unavailable returns a 502 or timeout
- No Ordinals activity in window returns zeros or empty sample array

## How this service works

Bitcoin Ordinals inscription activity for the last N blocks (1-144, default 6) from the UniSat Open API: total inscription events (new inscriptions plus transfers of existing ones), events per block and per hour, and a sample of the latest events. Requires UNISAT_API_KEY.

## Output

Returns an object containing total inscription events (new inscriptions plus transfers) over the requested block window, a breakdown per block and an hourly rate, and a sample array of the most recent individual inscription events from the UniSat API.

## 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",
     "properties": {
      "blocks": {
       "type": "integer",
       "default": 6,
       "maximum": 144,
       "minimum": 1,
       "description": "Number of recent blocks to analyze"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/btc-ordinals-inscription-flow-878ce95c/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)
