{"uid":"cap_xAvJi6Vin1z60DbAFmVEh","slug":"chainquery-getblockchaininfo-bitcoin-chain-state-via-x402-6c47a216","name":"chainquery getblockchaininfo – Bitcoin Chain State via x402","description":"chainquery Bitcoin RPC: pay-per-call Bitcoin Core over x402, no API key. Current Bitcoin (BTC) chain state from chainquery's independent full node: height, best block hash, difficulty, sync progress, on-disk size. Bitcoin Core getblockchaininfo.","url":"https://x402.chainquery.com/v1/rpc/getblockchaininfo","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":"getblockchaininfo 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_BV76_Q3TC-46m0f4C2xTe","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 current Bitcoin blockchain state (height, best block hash, difficulty, sync progress, disk size) from chainquery's independent full node using Bitcoin Core's getblockchaininfo RPC.","exampleAgentPrompt":"What's the current Bitcoin block height, best block hash, and difficulty right now — pull it straight from a Bitcoin Core full node?","exampleUseCases":null,"resultDescription":"A JSON object matching Bitcoin Core's getblockchaininfo response, including: chain name (e.g. 'main'), current block height, best block hash, difficulty, verification progress (0–1 float), headers count, on-disk size in bytes, pruned flag, and softfork/BIP activation statuses.","failureModes":["Payment failure (x402): insufficient USDC balance or misconfigured payment header returns HTTP 402","Node temporarily out of sync: verification progress < 1.0 may indicate stale data","Rate or network errors from the upstream Bitcoin Core node return 5xx","Invalid optional params JSON causes 400 bad request"],"whenToPreferThis":"Use this endpoint when you need trustworthy, real-time Bitcoin chain state (height, hash, difficulty, sync status) from an independent full node without obtaining an API key — ideal for agents that need to verify current chain conditions, monitor sync progress, or anchor transactions to a known block height, and are willing to pay micro-USDC per call via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:30:17.831Z","isFirstParty":false}