# Bitcoin Coinbase Messages & Mining Pool Attribution

> Bitcoin Coinbase Messages & Mining Pool Attribution 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 decoded coinbase transaction messages (ASCII) and mining pool attribution for the last N Bitcoin blocks, with both sanitized and raw hex script.

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/crypto/btc-coinbase-messages?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/bitcoin-coinbase-messages-mining-pool-attribution-0207e546
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_37qwF0A6-Qw5osb8e1-p0

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 bitcoin-coinbase-messages-mining-pool-attribution-0207e546
```

Example prompt: Can you pull the coinbase messages and mining pool attribution for the last 30 Bitcoin blocks — I want to see both the readable ASCII text and who mined each block?

## When to prefer this

Choose this endpoint when you need human-readable coinbase message text from recent Bitcoin blocks alongside mining pool attribution, especially when you want both sanitized ASCII and raw hex in a single call without running your own node or parsing raw blockchain data.

## Known failure modes

- blocks parameter out of range (must be 1-144) returns an error
- upstream Bitcoin node or data provider unavailable causing timeout
- non-integer or invalid blocks parameter returns a validation error
- very recent blocks not yet propagated may be missing or delayed

## How this service works

Coinbase text messages (clean readable ASCII) and mining pool attribution for the last N Bitcoin blocks (1-144, default 15). Includes both sanitized ASCII and raw hexadecimal script.

## Output

Returns a list of recent Bitcoin blocks each containing the decoded ASCII coinbase message (sanitized for readability), the raw hexadecimal coinbase script, and the attributed mining pool name, covering 1 to 144 blocks (default 15).

## 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": {
      "blocks": {
       "type": "string",
       "description": "Number of recent blocks to inspect, 1 to 144 (default 15)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bitcoin-coinbase-messages-mining-pool-attribution-0207e546/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)
