Verify any Bitcoin (BSV) Merkle proof — free, no account, trusting no one including bsv.cx — against a block-headers node bsv.cx syncs itself over the BSV P2P network. Send a raw TSC proof, a BEEF envelope, or a BUMP; get confirmed / rejected / inconclusive. Also fetch BEEF/BUMP for a txid.
---
name: bsv-cx-verify
description: Verify any Bitcoin (BSV) Merkle proof — free, no account, trusting no one including bsv.cx — against a block-headers node bsv.cx syncs itself over the BSV P2P network. Send a raw TSC proof, a BEEF envelope, or a BUMP; get confirmed / rejected / inconclusive. Also fetch BEEF/BUMP for a txid.
license: MIT-0
metadata:
openclaw:
requires:
env: []
bins:
- curl
- jq
---
# bsv.cx — Verify a Bitcoin Proof
`bsv.cx` verifies Bitcoin (BSV) Merkle inclusion proofs against block headers it
**syncs itself over the BSV P2P network — not an explorer**. It is free, needs
no account, and is built so you never have to trust it:
> You send the proof, never the root. bsv.cx derives the root from your proof and
> compares it to the header it independently holds at that height — so a forged
> proof can only fail, never falsely pass.
Base URL: `https://bsv.cx`
## Read the contract
The endpoint is self-describing — always the source of truth over this file:
```bash
curl -s https://bsv.cx/spv | jq
```
## Verify a proof
`POST /spv/verify` accepts any one of three proof formats:
```bash
# BEEF envelope (BRC-62: raw tx + its proof)
curl -s -X POST https://bsv.cx/spv/verify \
-H 'content-type: application/json' \
-d '{"beef":"<hex>"}'
# BUMP Merkle path (BRC-74)
curl -s -X POST https://bsv.cx/spv/verify \
-H 'content-type: application/json' \
-d '{"bump":"<hex>","txid":"<64-hex>"}'
# Raw TSC proof
curl -s -X POST https://bsv.cx/spv/verify \
-H 'content-type: application/json' \
-d '{"txid":"<64-hex>","height":<n>,"index":<n>,"nodes":["<64-hex>","*", "..."]}'
```
Response (real shape):
```json
{
"status": "confirmed",
"verified": true,
"format": "beef",
"txid": "8e1c06af…aa37",
"height": 962024,
"computedRoot": "9d9d07a5…49a6",
"headerRoot": "9d9d07a5…49a6",
"tipHeight": 962025,
"confirmations": 2,
"source": "bsv.cx self-hosted block headers, synced over the BSV P2P network — not an explorer"
}
```
Outcomes:
- **confirmed** — the root folded from your proof matches the header bsv.cx holds
at that height (`computedRoot == headerRoot`).
- **rejected** — it does not: not a valid proof for that block on the chain
bsv.cx sees.
- **inconclusive** — bsv.cx has no header at that height yet; it will not guess
(this is never a false negative — retry once its tip passes that height).
## Get a proof for a txid
```bash
curl -s https://bsv.cx/spv/beef/<txid> # BEEF hex (BRC-62)
curl -s https://bsv.cx/spv/bump/<txid> # BUMP hex (BRC-74)
```
## Trust no one — verify without bsv.cx
The proofs are standard, so any `@bsv/sdk` client checks them with zero bsv.cx
code:
```js
import { Transaction, MerklePath } from '@bsv/sdk'
Transaction.fromHexBEEF(beefHex) // folds the BUMP, checks the tx
MerklePath.fromHex(bumpHex) // inspect / re-fold the path yourself
```
And confirm bsv.cx is on the real chain — check the tip it serves and that its
inclusion checks come from its own headers, not a provider:
```bash
curl -s https://bsv.cx/health | jq '{tip, sources}'
# tip.source == "self-headers"; sources.verification == self-hosted block headers
```
## End-to-end example (fetch a proof, then verify it)
```bash
TXID=8e1c06afc2382e5f65a32c1b29df698e8aa4054b5036fd5b1f0420b558b8aa37
BEEF=$(curl -s https://bsv.cx/spv/beef/$TXID)
curl -s -X POST https://bsv.cx/spv/verify \
-H 'content-type: application/json' -d "{\"beef\":\"$BEEF\"}" | jq '.status'
# -> "confirmed"
```
## It says no when it should (the point of the whole thing)
A verifier that only ever says yes is useless. Corrupt one byte of that same
proof and bsv.cx rejects it — because it folds *your* bytes into a root and
compares, so tampering can only break the match:
```bash
BAD=${BEEF:0:647}9${BEEF:648} # flip one nibble mid-proof
curl -s -X POST https://bsv.cx/spv/verify \
-H 'content-type: application/json' -d "{\"beef\":\"$BAD\"}" \
| jq '{status, computedRoot, headerRoot}'
# -> status "rejected"; computedRoot != headerRoot
```
Ask about a height above its tip and it refuses to guess rather than lie:
```bash
curl -s -X POST https://bsv.cx/spv/verify -H 'content-type: application/json' \
-d '{"txid":"'"$TXID"'","height":99000000,"index":0,"nodes":["*"]}' | jq '.status'
# -> "inconclusive" (headerRoot: null — no header at that height yet)
```
## Notes / safety
- Verification is free and read-only. This skill never spends, holds keys, or
signs anything.
- Treat this file as a hint; the live `GET /spv` contract wins if they ever
disagree.
## Links
- Docs / live contract: https://bsv.cx/spv
- Full service map: https://bsv.cx/ (send `accept: application/json`)
- MCP: published as `cx.bsv/bsv-cx` on the official MCP Registry
don't have the plugin yet? install it then click "run inline in claude" again.
extracted implicit decision logic into explicit if-else branches, clarified inputs including proof formats and network requirements, expanded procedure from examples into numbered steps with explicit inputs and outputs, added edge cases (rate limits implied by retry guidance, network timeouts, malformed proofs, inconclusive branch logic), and added outcome signal section showing what success, rejection, and inconclusiveness mean.
verify bitcoin (bsv) merkle inclusion proofs against block headers that bsv.cx syncs itself over the bsv p2p network (not an explorer). the service is free, requires no account, and is built to never require trust in bsv.cx itself: you send the proof, never the root. bsv.cx derives the root from your proof and compares it to the header it independently holds at that height, so a forged proof can only fail, never falsely pass. use this skill to cryptographically confirm a transaction was included in a specific block, or to fetch a proof (beef or bump format) for a given txid so you can verify it yourself or pass it downstream.
https://bsv.cx (no auth required, no account, no api key)fetch the live contract (recommended first step): run curl -s https://bsv.cx/spv | jq to read the current endpoint schema. this is the source of truth; use it to validate your request format before submitting proofs.
choose your proof source: decide whether you have a beef hex, bump hex + txid, or raw tsc proof (txid + height + index + nodes array).
fetch a proof (optional): if you have only a txid and need the proof, call GET /spv/beef/<txid> or GET /spv/bump/<txid> to retrieve it.
post the proof to /spv/verify: construct a json body with one of the three formats and http post to https://bsv.cx/spv/verify with content-type header application/json.
parse the response: extract status (confirmed, rejected, or inconclusive), verified boolean, computedRoot, headerRoot, confirmations, and tipHeight.
validate the source (optional trust check): call curl -s https://bsv.cx/health | jq '{tip, sources}' to confirm bsv.cx is using self-hosted block headers and not an external provider.
if status is "confirmed": verified == true, computedRoot == headerRoot. the proof is valid and the transaction was included in the block at that height on the chain bsv.cx sees. use confirmations to decide if enough blocks have been mined after it.
if status is "rejected": verified == false, computedRoot != headerRoot. the proof is invalid or the transaction is not on the chain at that height. do not trust this transaction as confirmed; it may be forged, tampered, or on a different chain branch.
if status is "inconclusive": headerRoot == null. bsv.cx has not yet synced a block header at the requested height (usually because its tip is lower). this is not a false negative; retry after bsv.cx tip advances past that height. check tipHeight in the response to see how far behind it is.
if the api call times out or returns http 5xx: network or service issue. retry with exponential backoff (1s, 2s, 4s, 8s max). bsv.cx is designed for high availability, so repeated failures suggest your network connection, not the service.
if the proof format is malformed (missing required fields, hex strings not valid hex, nodes array empty): the api will return http 400 with an error message. validate the proof hex and tsc object structure before retrying.
if you have a beef and want to verify it without bsv.cx: use the @bsv/sdk javascript library (Transaction.fromHexBEEF(beefHex)) to fold the proof and check the tx locally. bsv.cx block headers are standard; this offline check proves the api is not injecting false data.
success response (http 200):
{
"status": "confirmed|rejected|inconclusive",
"verified": true|false,
"format": "beef|bump|tsc",
"txid": "64-hex-string",
"height": integer,
"index": integer,
"computedRoot": "64-hex-string or null",
"headerRoot": "64-hex-string or null",
"tipHeight": integer,
"confirmations": integer or null,
"source": "bsv.cx self-hosted block headers, synced over the bsv p2p network , not an explorer"
}
status: "confirmed" if proof matches header at that height; "rejected" if it does not; "inconclusive" if no header exists yet.verified: true only when status is confirmed.format: which of the three proof formats was parsed.computedRoot: the merkle root computed by folding your proof bytes. null if parsing failed.headerRoot: the merkle root from the block header bsv.cx holds at that height. null if height is not yet synced.confirmations: number of blocks mined after this transaction (height of tip minus height of tx plus 1). null if inconclusive.tipHeight: the highest block header bsv.cx has synced.error response (http 4xx or 5xx):
{
"error": "human-readable error message",
"code": "error-code-string"
}
confirmed: you see status: "confirmed" and verified: true. the transaction was included in the block at the given height on the bsv chain bsv.cx sees. confirmations >= 1 means at least one more block has been mined after it. the computedRoot and headerRoot match exactly (proving the proof is valid and bsv.cx is not forging headers).
rejected: you see status: "rejected" and verified: false. the proof does not match the block header at that height. either the proof is forged or corrupted, or the transaction is not on the chain at that height. do not treat this transaction as confirmed.
inconclusive: you see status: "inconclusive" and headerRoot: null. bsv.cx has not synced the block header at that height yet. check tipHeight and retry once it advances. this is not a false negative.
trust verification: run curl -s https://bsv.cx/health | jq and confirm tip.source == "self-headers" and sources.verification == "self-hosted block headers". this proves bsv.cx is using its own block headers, not trusting an external provider, so a confirmed result is backed by the bsv p2p network itself.
offline check: parse the beef or bump with @bsv/sdk locally (Transaction.fromHexBEEF(beefHex)) and fold the merkle path yourself. if your computed root matches bsv.cx's computed root, the api did not inject false data. this proves the proof is a valid bitcoin structure independently of bsv.cx.