Skip to main content

getindexinfo

Overview

The 'getindexinfo' RPC Method returns the status of one or all available indexes actively running in the node.

Request

wget --no-check-certificate --quiet \
--method POST \
--timeout=0 \
--header 'Content-Type: application/json' \
--header 'accept: application/json' \
--header 'X-CoinAPI-Key: 4303fb63-adec-42dc-b571-74bc2f2a5167' \
--body-data '{"jsonrpc":"2.0","id":1,"method":"getindexinfo","params": [ ]}' \
'https://bitcoin-mainnet.node.coinapi.io'

Request Parameters

index_name (string): It filters results for an index with a specific name

Response

{
"result": {},
"error": null,
"id": 1
}

txindex: The index name. synced: It states whether the index is synced or not best_block_height: The height of the block to which the index is synced