{"uid":"cap_82XNIukEVXiQWK_eXfSVc","slug":"btc-block-2f569a39","name":"btc-block","description":"Bitcoin block metadata by height or hash (or the chain tip when neither is given), fused with the current difficulty-adjustment context, a computed halving countdown and a network hashrate snapshot. Informational, not advice.","url":"https://payai.agentstools.dev/btc/block","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"hash":{"type":"string","description":"Block hash (64 hex characters); alternative to height"},"height":{"type":"integer","description":"Block height; omit height and hash for the chain tip"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","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.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MkEWC__7y-VUGzxxBazla","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns Bitcoin block metadata by height or hash (or chain tip), fused with difficulty-adjustment context, halving countdown, and network hashrate snapshot.","exampleAgentPrompt":"What are the details for Bitcoin block 840000 — including the current difficulty adjustment status and how many blocks are left until the next halving?","exampleUseCases":[{"title":"Live chain tip monitoring","prompt":"What is the latest Bitcoin block right now? Give me the height, hash, timestamp, current network hashrate, and where we are in the difficulty adjustment cycle."},{"title":"Halving countdown tracker","prompt":"How many blocks are left until the next Bitcoin halving, and what is the current block height and mining difficulty?"},{"title":"Historical block audit","prompt":"Pull up the metadata for Bitcoin block with hash 000000000000000000029a4b6a5cf72d5d90d0e96e3ee2b8e2c9e16c2cb4e2f — I need the block details plus the difficulty-adjustment context at that point."}],"resultDescription":"Returns a JSON object containing block metadata (height, hash, timestamp, size, transaction count), current difficulty-adjustment context (progress, estimated adjustment percentage), a computed halving countdown (blocks remaining, estimated date), and a network hashrate snapshot.","failureModes":["Invalid block hash format (not 64 hex characters) returns an error","Block height out of range or not yet mined returns not-found error","Network unavailable or upstream Bitcoin node timeout returns 5xx error","Missing or malformed query parameters may return a validation error"],"whenToPreferThis":"Use this endpoint when you need a single enriched view of a Bitcoin block that combines raw block metadata with computed metrics like difficulty adjustment progress and halving countdown — avoiding the need to call multiple separate APIs. Ideal for Bitcoin dashboards, on-chain monitoring agents, and crypto research workflows where contextual network data matters alongside block specifics.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:43:28.713Z","isFirstParty":false}