{"uid":"cap_ER6i20GJmF94Fshr5c1EX","slug":"bitcoin-latest-block-6cf509d8","name":"Bitcoin Latest Block","description":"The latest Bitcoin block: height, hash, age, transaction count, total fees, fee-rate percentiles, size, weight and subsidy.","url":"https://diamond.btc-intel.workers.dev/api/x402/block?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"height":974953,"age_min":4.1,"product":"latest_block","tx_count":3812,"total_fee_btc":0.0412,"feerate_percentiles_sat_vb":[1,2,3,5,9]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YGiIp0LfmYdsa7YmMmli-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the most recent Bitcoin block's height, hash, age, transaction count, total fees, fee-rate percentiles, size, weight, and subsidy.","exampleAgentPrompt":"What does the latest Bitcoin block look like — give me the height, hash, age, transaction count, total fees, fee-rate percentiles, and block size right now.","exampleUseCases":[{"title":"Real-time blockchain dashboard widget","prompt":"Pull the latest Bitcoin block info — height, age, transaction count, and fee-rate percentiles — so I can display it on my crypto dashboard."},{"title":"Fee estimation before sending Bitcoin","prompt":"What are the current fee-rate percentiles from the latest Bitcoin block? I want to know what sat/vB to use to get my transaction confirmed quickly."},{"title":"Alerting on block activity spikes","prompt":"Check the latest Bitcoin block and tell me how many transactions it had and what the total fees were — I want to know if activity is unusually high right now."}],"resultDescription":"A JSON object containing the latest Bitcoin block's height (integer), age in minutes, product label, transaction count, total fees in BTC, fee-rate percentiles as an array of sat/vB values (e.g. 10th, 25th, 50th, 75th, 90th percentile), block size, block weight, and miner subsidy.","failureModes":["Node temporarily unavailable — 5xx error if the backend Bitcoin node is syncing or offline","Stale data if block propagation is delayed to the node","Payment required (402) if the x402 micropayment header is missing or insufficient","Rate limiting if the API key or wallet is exhausted"],"whenToPreferThis":"Use this endpoint when you need a single, real-time snapshot of the most recent Bitcoin block including fee-rate percentiles and on-chain activity metrics. Prefer it over block explorer scraping or running a full node when you need structured, pay-per-call data with no infrastructure overhead. It is especially useful for fee estimation, blockchain monitoring dashboards, and alerting pipelines that need current mempool and block statistics.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T12:36:24.192Z","isFirstParty":false,"canonicalSlug":"bitcoin-latest-block-6cf509d8"}