Bitcoin blockchain data, fees, mempool, SEC insider trades, Reddit sentiment. x402 micropayments for paid endpoints.
Full LLM thinking from the 4-phase benchmark pipeline.
```json
{
"service_type": "rest_api",
"base_url": "https://btcnode.uk",
"auth_method": "api_key_header",
"auth_config": {"header": "X-PAYMENT", "prefix": null},
"endpoints": [
{
"path": "/api/info",
"method": "GET",
"purpose": "Block height, difficulty, peers, chain health",
"params": {},
"response_format": "json",
"is_primary": true
},
{
"path": "/api/chain/info",
"method": "GET",
"purpose": "Full chain state: height, size on disk, prune flag, softforks",
"params": {},
"response_format": "json",
"is_primary": false
},
{
"path": "/api/chain/best",
"method": "GET",
"purpose": "Current chain tip: hash, height, time, confirmations",
"params": {},
"response_format": "json",
"is_primary": false
},
{
"path": "/api/chain/tips",
"method": "GET",
"purpose": "All known chain tips — detects forks and reorgs",
"params": {},
"response_format": "json",
"is_primary": false
},
{
"path": "/api/chain/txstats",
"method": "GET",
"purpose": "Transaction rate and volume over the window",
"params": {},
"response_format": "json",
"is_primary": false
},
{
"path": "/api/chain/utxo-set",
"method": "GET",
"purpose": "Circulating supply, UTXO count, total amount — cached 10 min",
"params": {},
"response_format": "json",
"is_primary": false
},
{
"path": "/api/chain/index-status",
"method": "GET",
"purpose": "Which indexes this node runs (txindex, blockfilter, coinstats)",
"params": {},
"response_format": "json",
"is_primary": false
},
{
"path": "/api/block/{hashOrHeight}",
"method": "GET",
"purpose": "Block by hash or height: txs, size, weight, merkleroot",
"params": {"hashOrHeight": {"type": "string", "required": true}},
"response_format": "json",
"is_primary": false
},
{
"path": "/api/block/{hash}/header",
"method": "GET",
"purpose": "Raw block header + prev/next links",
"params": {"hash": {"type": "string", "required": true}},
"response_format": "json",
"is_primary": false
},
{
"path": "/api/block/{hash}/stats",
"method": "GET",
"purpose": "Block economics: subsidy, total fees, fee-rate percentiles",
"params": {"hash": {"type": "string", "required": true}},
"response_format": "json",
"is_primary": false
},
{
"path": "/api/block/{hash}/raw",
"method": "GET",
"purpose": "Raw block hex — for SPV and light clients",
"params": {"hash": {"type": "string", "required": true}},
"response_format": "text",
"is_primary": false
},
{
"path": "/api/blocks/recent",
"method": "GET",
"purpose": "Last N blocks (default 10): height, hash, size, txcount, time",
"params": {},
"response_format": "json",
"is_primary": false
},
{
"path": "/api/tx/{hash}",
"method": "GET",
"purpose": "Transaction lookup + confirmations",
"params": {"hash": {"type": "string", "required": true}},
"response_format": "json",
"is_primary": false
},
{
"path": "/api/tx/{hash}/raw",
"method": "GET",
"purpose": "Raw transaction hex",
"params": {"hash": {"type": "string", "required": true}},
"response_format": "text",
"is_primary": false
},
{
"path": "/api/tx/{hash}/status",
"method": "GET",
"purpose": "Confirmed or pending: block, height, confirmations, fee",
"params": {"hash": {"type": "string", "required": true}},
"response_format": "json",
"is_primary": false
},
{
"path": "/api/tx/{hash}/outspends",
"method": "GET",
"purpose": "Which outputs are already spent — UTXO hygiene check",
"params": {"hash": {"type": "string", "required": true}},
"response_format": "json",
"is_primary": false
},
{
"path": "/api/tx/decode",
"method": "POST",
"purpose": "Decode an arbitrary raw transaction hex",
"params": {},
"response_format": "json",
"is_primary": false
},
{
"path": "/api/tx/broadcast",
"method": "POST",
"purpose": "Broadcast a signed transaction to the network",
"params": {},
"response_format": "json",
"is_primary": false
},
{
"path": "/api/tx/test",
"method": "POST",
"purpose": "Would this transaction be accepted? Fee/relay/standardness check",
"params": {},
"response_format": "json",
"is_primary": false
},
{
"path": "/api/trace/{txid}",
"method": "GET",
"purpose": "2-hop transaction tracing — follow the money",
"params": {"txid": {"type": "string", "required": true}},
"response_format": "json",
"is_primary": false
```json
{
"tests": [
{
"name": "health_liveness",
"endpoint": "/health",
"method": "GET",
"headers": {},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns liveness + wallet info as JSON",
"metrics": ["latency", "status_code", "accuracy"],
"validation": {"field": "status", "type": "string", "min_length": 1}
},
{
"name": "catalog_free",
"endpoint": "/api/catalog",
"method": "GET",
"headers": {},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns machine-readable catalog of all routes and prices, including $0.001 per-call pricing",
"metrics": ["latency", "status_code", "accuracy"],
"validation": {"field": "routes", "type": "array", "min_length": 1}
},
{
"name": "info_without_payment",
"endpoint": "/api/info",
"method": "GET",
"headers": {},
"payload": {},
"expected_status": 402,
"intent": "auth",
"expected_behavior": "x402 payment Required: 402 with accepts[] describing price, asset USDC, network eip155:8453, payTo",
"metrics": ["status_code", "accuracy"],
"validation": {"field": "accepts", "type": "array", "min_length": 1}
},
{
"name": "info_with_valid_payment",
"endpoint": "/api/info",
"method": "GET",
"headers": {"X-PAYMENT": "<valid-x402-payment-payload>"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns chain health: chain=main, blocks (height), difficulty, verificationprogress ~1",
"metrics": ["latency", "status_code", "accuracy"],
"validation": {"field": "blocks", "type": "number", "min": 1}
},
{
"name": "fees_with_valid_payment",
"endpoint": "/api/fees",
"method": "GET",
"headers": {"X-PAYMENT": "<valid-x402-payment-payload>"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns live fee rates: fast/medium/slow in sat/vB",
"metrics": ["latency", "status_code", "accuracy"],
"validation": {"field": "fast", "type": "number", "min": 0}
},
{
"name": "fees_estimate_bad_target",
"endpoint": "/api/fees/estimate?target=99999",
"method": "GET",
"headers": {"X-PAYMENT": "<valid-x402-payment-payload>"},
"payload": {},
"expected_status": 400,
"intent": "validation",
"expected_behavior": "Rejects out-of-range target (valid is 1-1008) with 400 and structured error body",
"metrics": ["status_code", "accuracy"],
"validation": {"field": "error", "type": "string", "min_length": 1}
},
{
"name": "block_by_height",
"endpoint": "/api/block/1",
"method": "GET",
"headers": {"X-PAYMENT": "<valid-x402-payment-payload>"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns genesis block with height=1 and merkle root",
"metrics": ["latency", "status_code", "accuracy"],
"validation": {"field": "height", "type": "number", "min": 0}
},
{
"name": "block_invalid_identifier",
"endpoint": "/api/block/not-a-block-identifier",
"method": "GET",
"headers": {"X-PAYMENT": "<valid-x402-payment-payload>"},
"payload": {},
"expected_status": 400,
"intent": "validation",
"expected_behavior": "Rejects malformed hash/height with 400 and structured error body",
"metrics": ["status_code", "accuracy"],
"validation": {"field": "error", "type": "string", "min_length": 1}
},
{
"name": "address_validate_happy",
"endpoint": "/api/address/validate/bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4",
"method": "GET",
"headers": {"X-PAYMENT": "<valid-x402-payment-payload>"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns isvalid=true and scriptPubKey for a known valid bech32 P2WPKH address",
"metrics": ["latency", "status_code", "accuracy"],
"validation": {"field": "isvalid", "type": "boolean", "equals": true}
},
{
"name": "tx_decode_missing_hex",
"endpoint": "/api/tx/decode",
"method": "POST",
"headers": {"X-PAYMENT": "<valid-x402-payment-payload>", "Content-Type": "application/json"},
"payload": {},
"expected_status": 400,
"intent": "validation",
"expected_behavior": "Rejects body missing required 'hex' field with 400 and structured error body",
"metrics": ["status_code", "accuracy"],
"validation": {"field": "error", "type": "string", "min_length": 1}
},
{
"name": "tx_decode_garbage_hex",
"endpoint": "/api/tx/decode",
"method": "POST",
"headers": {"X-PAYMENT": "<valid-x402-payment-payload>", "Content-Type": "applicati2/12 tests passed
| Test | Endpoint | Status | Latency |
|---|---|---|---|
| health_liveness | GET /health | 200 | 178ms |
| catalog_free | GET /api/catalog | 200 | 80ms |
| info_without_payment | GET /api/info | 402 | 80ms |
| info_with_valid_payment | GET /api/info | 402 | 77ms |
| fees_with_valid_payment | GET /api/fees | 402 | 79ms |
| fees_estimate_bad_target | GET /api/fees/estimate?target=99999 | 402 | 78ms |
| block_by_height | GET /api/block/1 | 402 | 82ms |
| block_invalid_identifier | GET /api/block/not-a-block-identifier | 402 | 82ms |
| address_validate_happy | GET /api/address/validate/bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4 | 402 | 76ms |
| tx_decode_missing_hex | POST /api/tx/decode | 402 | 75ms |
{"model": "deepseek", "data": {"overall": 46, "dimensions": {"token_efficiency": 6.0, "first_try_success": 2.0, "response_parseability": 9.0, "error_clarity": 8.0, "doc_quality": 5.0, "auth_simplicity": 6.0, "latency": 7.0, "consistency": 8.0}, "pricing_normalized": {"cost_per_1k_requests": 1.0, "cost_per_1m_input_tokens": null, "cost_per_1m_output_tokens": null, "free_tier_requests": null, "estimated_monthly_cost_light": 0.03, "estimated_monthly_cost_heavy": 3.0}, "issues": [{"severity": "critical", "detail": "The benchmark agent could not complete any paid request: /api/info, /api/fees, /api/block/1, /api/address/validate/..., /api/mempool, POST /api/tx/decode all returned 402 payment_required even when the test harness intended to supply a 'valid payment'. The x402/L402 payment flow (EIP-3009 signature or Lightning invoice settlement) was not automatably executed by the agent, so no paid happy-path test ever exercised the real 200 response shape.", "endpoint": "/api/info"}, {"severity": "high", "detail": "Validation tests (block_invalid_identifier, fees_estimate_bad_target=99999, tx_decode_missing_hex, tx_decode_garbage_hex) all returned 402 before any 400/422 input-validation check. The paywall short-circuits validation, so an agent cannot discover parameter errors without first paying \u2014 this wastes a paid call on malformed input and obscures the correct 400 contract.", "endpoint": "/api/block/{hashOrHeight}"}, {"severity": "medium", "detail": "Category list in the analysis includes many unrelated capabilities (sec_filings, web_scraping, text_summarization, reddit_data, whale_monitoring) not represented by any benched endpoint, suggesting a noisy/over-broad capability declaration that can mislead agents.", "endpoint": "n/a"}, {"severity": "medium", "detail": "Catalog is served (good) but the full paid-endpoint schema (request params, response schemas) is only partially discoverable from /api/catalog; agents must pay to learn the real response shape of most endpoints.", "endpoint": "/api/catalog"}], "recommendations": ["Provide a first-class machine-payable flow that an autonomous agent can complete end-to-end without human intervention: e.g., a documented x402 'X-PAYMENT' header construction with a funded testnet/faucet wallet, or a static test key that bypasses payment on a sandbox base URL.", "Allow free (or cheap) dry-run/validation on malformed inputs so that 400/422 validation errors surface BEFORE the 402 paywall. Currently the paywall masks input validation entirely.", "Document the full paid-endpoint request/response schemas (and example 200 bodies) in /api/catalog or an OpenAPI spec, so agents don't have to pay 0.001 USDC just to discover the response shape of /api/info, /api/fees, /api/mempool, etc.", "Trim the advertised capabilities list to what is actually implemented; remove sec_filings/web_scraping/reddit_data/text_summarization unless they are real endpoints.", "Include a 'swagger'/OpenAPI URL in /api/catalog and in the 402 error body so the doc pointer is unambiguous.", "For validation-heavy endpoints (/api/fees/estimate, /api/tx/decode), expose the parameter constraints (e.g., target block range, hex length) directly in the 402/400 error message so the agent doesn't need a second paid round-trip."]}}Show your live agent-readiness score on your own site. Free, no auth — it updates as your score changes.
<a href="https://prowl.world/service/btcnodeuk">
<img src="https://prowl.world/badge/btcnodeuk.svg" height="56" alt="Agent-readiness on Prowl">
</a>
See operational metrics, LLM evaluations, agent readiness, and more.
Open in Dashboard