Bitcoin
Bitcoin
Bitcoin
Free tier covers personal projects. Pay-as-you-go scales without a card.
getindexinfo reports which optional indexes a Bitcoin Core node is running and how far each one has caught up to the chain tip. Bitcoin nodes can maintain several supplementary indexes — txindex for arbitrary transaction lookups, the basic block filter index for compact-filter scanning, and coinstatsindex for UTXO-set statistics — and each affects what other read methods you can call against this BTC node. Use this method to discover those capabilities before you depend on them. It is a read-only call against https://bitcoin.therpc.io/YOUR_API_KEY and returns an object keyed by index name, each with a synced flag and a best_block_height.
-txindex before relying on getrawtransaction to fetch arbitrary, non-wallet transactions by txid alone (without supplying a blockhash).best_block_height to the current chain tip, rather than assuming a present index is usable.| # | Name | Type | Required | Description |
|---|---|---|---|---|
| 1 | index_name | string | No | Filter to one index (e.g. txindex); omit for all. |
| Type | Description |
|---|---|
| object | Object keyed by index name (txindex, basic block filter index, coinstatsindex) each with { synced, best_block_height }. |
synced flag (and best_block_height against the tip) before relying on lookups that depend on that index, or you may get incomplete results.