diamond.btc-intel.workers.dev/api/x402/block_stats
Statistics for one recent Bitcoin block (this pruned node keeps roughly the last 10,000) by height or hash: tx count, total fees, fee-rate percentiles, size, weight, subsidy, inputs and outputs, SegWit share, and the miner (coinbase tag and pool).
GET
https://diamond.btc-intel.workers.dev/api/x402/block_statsUptime100% of 3 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://diamond.btc-intel.workers.dev/api/x402/block_stats?block_id=974000");
console.log(await res.json());Example input
{
"block_id": "974000"
}