# SignalHarness Bitcoin Script Classifier

> SignalHarness Bitcoin Script Classifier is a paid API for AI agents from signalharness.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Classifies a Bitcoin script (locking or unlocking script) into its type and provides warnings about potential issues

## Facts

- Endpoint: POST https://signalharness.ai/api/agent/services/bitcoin_script_classify/invoke
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/signalharness-bitcoin-script-classifier-1b794766
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bIYDYMg-J36_RDoHhq9uR

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 signalharness-bitcoin-script-classifier-1b794766 -d '<json body>'
```

Example prompt: Can you classify this Bitcoin script for me and flag any potential issues: '76a914{pubKeyHash}88ac'? I need to know what type of script it is.

## When to prefer this

Choose this endpoint when you need programmatic, agent-friendly classification of raw Bitcoin scripts as part of a blockchain analysis, wallet auditing, or transaction inspection workflow. It is purpose-built for AI agents with per-call micropayment pricing via x402/USDC, making it ideal for on-demand script analysis without a subscription. Prefer it over general-purpose blockchain explorers when you need structured, machine-readable output with receipts and auditability.

## Known failure modes

- Invalid or malformed script input returns an error or unclassified result
- Script too short (below minLength of 2 characters) rejected at input validation
- Script exceeding 65536 characters rejected at input validation
- Network or payment settlement failures captured in receipt status field
- Unknown or non-standard scripts may return a generic classification with warnings

## How this service works

Explore 330 pay-per-call x402 API services and 27 agent-native digital products, with Base USDC pricing, secure Polar checkout, and free discovery.

## Output

Returns a JSON object containing the classification label for the Bitcoin script (e.g. P2PKH, P2SH, P2WPKH, P2WSH, P2TR, non-standard), a list of any warnings about the script, an evidence scope indicator ('caller_supplied_data'), and a full execution receipt including payment details, latency, and a SHA-256 result hash for auditability.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bitcoin_script_request": {
   "type": "string",
   "maxLength": 65536,
   "minLength": 2
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "replay": false,
  "result": {
   "warnings": [
    "Classification does not execute or validate scripts."
   ],
   "service_id": "bitcoin_script_classify",
   "evidence_scope": "caller_supplied_data",
   "bitcoin_script_classification": "{\"scripts\":[{\"byte_length\":25,\"script_hex\":\"76a914111111111111111111111111111111111111111188ac\",\"type\":\"p2pkh\"},{\"byte_length\":22,\"script_hex\":\"00142222222222222222222222222222222222222222\",\"type\":\"p2wpkh\"}]}"
  },
  "status": "succeeded",
  "receipt": {
   "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
   "usage": [],
   "status": "succeeded",
   "network": "eip155:8453",
   "artifacts": [],
   "endedAtMs": 0,
   "latencyMs": 0,
   "paymentId": "example-payment",
   "receiptId": "example-receipt",
   "requestId": "example-request",
   "serviceId": "bitcoin_script_classify",
   "executionId": "example-execution",
   "startedAtMs": 0,
   "amountAtomic": "5000",
   "resultSha256": "9e7b390d5d88e9e26d4a39601c3d9cb722c333b2ab0e292d7918aa81a60040fd",
   "serviceVersion": "1.0.0",
   "settlementReference": "0x0000000000000000000000000000000000000000000000000000000000000000"
  },
  "artifacts": [],
  "requestId": "example-request",
  "executionId": "example-execution"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/signalharness-bitcoin-script-classifier-1b794766/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from signalharness.ai](https://www.zero.xyz/host/signalharness.ai/llms.txt)
