{"uid":"cap_wfF-xqmgMg2TkiMCQLiZC","slug":"chainquery-bitcoin-getblockcount-rpc-71f1a24e","name":"chainquery Bitcoin getblockcount RPC","description":"chainquery Bitcoin RPC: pay-per-call Bitcoin Core over x402, no API key. Current block height of the chain tip from chainquery's independent full node. Bitcoin Core getblockcount.","url":"https://x402.chainquery.com/v1/rpc/getblockcount?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":"getblockcount result"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"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__R9Rtb4zlbfWRS5G0c7D_","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 current block height (block count) of the Bitcoin chain tip from chainquery's independent full node via pay-per-call x402 API","exampleAgentPrompt":"What is the current Bitcoin block height right now? Use chainquery's independent full node to get the latest block count.","exampleUseCases":null,"resultDescription":"A JSON object with a 'result' field containing the current Bitcoin block height as an integer (e.g. {\"result\": 843210}), representing the number of blocks in the longest chain as seen by chainquery's full node.","failureModes":["Payment failure (HTTP 402) if x402 micropayment is not processed correctly","Node temporarily out of sync returning a slightly stale block height","Network timeout if chainquery's full node is unavailable","Malformed response if optional params are incorrectly JSON-encoded"],"whenToPreferThis":"Use this endpoint when you need the current Bitcoin block height from an independent full node without setting up an API key, especially in automated or agent-driven workflows that can handle x402 micropayments. Prefer over free APIs when you need trustless, node-level data or when API key management is undesirable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:37:40.913Z","isFirstParty":false,"canonicalSlug":"chainquery-bitcoin-getblockcount-rpc-71f1a24e"}