{"uid":"cap_BSZotn0jk7OlmZuexRGVj","slug":"bitcoin-blocks-range-api-ef891858","name":"Bitcoin Blocks Range API","description":"Up to 144 consecutive Bitcoin blocks descending from fromHeight (or tip). Returns height, hash, time, size, weight, tx count, fees, subsidy, reward, median fee sat/vB, and pool name for each block.","url":"https://api.chainmarket-api.workers.dev/api/crypto/btc-blocks-range?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"count":{"type":"string","description":"Number of consecutive blocks to return, 1 to 144 (default 15)"},"fromHeight":{"type":"string","description":"Starting block height (descending downwards, optional default: latest tip)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mBJWV8oLtNkV4305HceKv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns up to 144 consecutive Bitcoin blocks descending from a given height (or chain tip), with fee, reward, size, weight, tx count, and mining pool data per block.","exampleAgentPrompt":"Can you pull the last 50 Bitcoin blocks starting from height 850000 — I want to see the fees, rewards, tx counts, and which mining pools mined each one?","exampleUseCases":[{"title":"Mining pool dominance analysis","prompt":"Show me the last 144 Bitcoin blocks and tell me which mining pools mined them — I want to understand recent pool distribution and their share of blocks."},{"title":"Fee rate trend monitoring","prompt":"Fetch the 30 most recent Bitcoin blocks and give me the median fee rate in sat/vB for each one so I can see how fees have been trending."},{"title":"Block reward and subsidy audit","prompt":"Starting from Bitcoin block height 840000, get me 20 consecutive blocks with their subsidy, total fees, and reward so I can verify the post-halving block economics."}],"resultDescription":"An ordered list of up to 144 Bitcoin block records, each containing: block height, hash, timestamp, size (bytes), weight (WU), transaction count, total fees (sats), subsidy (sats), total reward (sats), median fee rate (sat/vB), and attributed mining pool name.","failureModes":["Invalid or out-of-range fromHeight returns an error or empty result","count outside 1-144 range may return an error or be clamped","Chain tip lag may result in slightly stale data near the tip","Network timeout if the Workers endpoint is under load","Missing pool attribution if block coinbase is unrecognized"],"whenToPreferThis":"Choose this endpoint when you need a batch of consecutive Bitcoin blocks with rich per-block stats (fees, rewards, pool attribution, weight) in a single call — especially for trend analysis, mining pool research, or fee monitoring over a range. Prefer over single-block lookups when you need historical context across many blocks at once.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T18:30:41.185Z","isFirstParty":false,"canonicalSlug":"bitcoin-blocks-range-api-ef891858"}