{"uid":"cap_luvcKEXjGYbMfYfoKuzXe","slug":"bitcoin-block-summary-by-height-or-hash-301a2bd7","name":"Bitcoin Block Summary by Height or Hash","description":"Detailed Bitcoin block summary by height or hash from mempool.space: size, weight, tx count, total fees, subsidy, reward, fee range, median fee rate sat/vB, mining pool, and coinbase message.","url":"https://api.chainmarket-api.workers.dev/api/crypto/btc-block?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":{"hash":{"type":"string","description":"64-character hexadecimal block hash"},"height":{"type":"string","description":"Block height number (e.g. '840000')"}}}},"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_iZ6NtiQn8KaAj5icd08MZ","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 detailed Bitcoin block metadata (size, weight, tx count, fees, subsidy, reward, fee range, median fee rate, mining pool, coinbase message) for a given block height or hash via mempool.space.","exampleAgentPrompt":"Can you pull up the full block summary for Bitcoin block 840000 — I want to know the mining pool, total fees, median fee rate, transaction count, and the coinbase message?","exampleUseCases":[{"title":"Mining pool attribution research","prompt":"Which mining pool found Bitcoin block 840000 and what was the full reward breakdown including subsidy and fees?"},{"title":"Fee market retrospective analysis","prompt":"What was the median fee rate and total fees collected in Bitcoin block 839999? I'm trying to understand fee pressure at that height."},{"title":"Coinbase message inspection","prompt":"Can you fetch the coinbase message and mining pool info for the block with hash 0000000000000000000320283a032748cef8227328def8e9f29e9b5d2d7f8c44?"}],"resultDescription":"Returns a structured summary of a single Bitcoin block including: block size (bytes), weight (WU), transaction count, total fees (sats), block subsidy (sats), miner reward (sats), minimum and maximum fee rates (sat/vB), median fee rate (sat/vB), mining pool name, and the decoded coinbase message string.","failureModes":["Block not found: invalid or non-existent height/hash returns an error","Missing required parameter: neither height nor hash provided results in a 400-level error","Invalid hash format: non-64-character or non-hex string rejected","mempool.space upstream unavailability causes timeout or 502 error","Future block heights not yet mined return not-found errors"],"whenToPreferThis":"Use this endpoint when you need a comprehensive single-block summary from Bitcoin's chain — especially when you need mining pool attribution, coinbase message decoding, or fee statistics for a specific block. It is more detailed than generic block explorers and surfaces sat/vB fee range and median in one call. Prefer this over raw mempool.space API calls when you need a paid, structured, agent-friendly response with combined fields.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T18:31:26.102Z","isFirstParty":false,"canonicalSlug":"bitcoin-block-summary-by-height-or-hash-301a2bd7"}