{"uid":"cap_AuZadRXDyAqI5eavAtb4k","slug":"chainquery-bitcoin-getbestblockhash-rpc-14000189","name":"chainquery Bitcoin getbestblockhash RPC","description":"chainquery Bitcoin RPC: pay-per-call Bitcoin Core over x402, no API key. Hash of the current chain tip (best block) from chainquery's independent full node. Bitcoin Core getbestblockhash.","url":"https://x402.chainquery.com/v1/rpc/getbestblockhash?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"params":{"type":"string","description":"optional: JSON-encoded array of positional RPC params"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"result":{"description":"getbestblockhash result"}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"params":"[]"}}},"response":{"result":"0000000000000000000108e9879337b59315d3233eca86efc9877b2ef23f48ad"}},"exampleRequest":{"params":"[]"},"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dCObyq11_B8h2etY_4L6A","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the block hash of the current Bitcoin chain tip (best block) from a chainquery-operated full node via pay-per-call x402.","exampleAgentPrompt":"What's the block hash of the current Bitcoin chain tip right now? Use chainquery's independent full node to get it.","exampleUseCases":null,"resultDescription":"A JSON object containing a 'result' field with a 64-character hexadecimal string representing the block hash of the current best Bitcoin block (chain tip), as returned directly by Bitcoin Core's getbestblockhash RPC method.","failureModes":["Payment failure (x402 payment not accepted) — returns 402 Payment Required","Node temporarily unavailable — returns 5xx error","Invalid query params JSON — returns 400 Bad Request","Network timeout if full node is syncing"],"whenToPreferThis":"Choose this endpoint when you need a trustless, independently-operated Bitcoin full node's view of the current chain tip hash without setting up API keys. Ideal for agents that need to verify or anchor blockchain state, monitor for new blocks, or bootstrap further block-level queries. Prefer over block explorers when you want raw Bitcoin Core RPC semantics and pay-per-use pricing with no subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:39:43.857Z","isFirstParty":false,"canonicalSlug":"chainquery-bitcoin-getbestblockhash-rpc-14000189"}