getindexinfo

Gives back the state of any accessible indices that are presently operating on the node.

Example Request and Result for getindexinfo method

In this section, we provide an illustrative example of a request made to retrieve details contents using the getindexinfo method. Additionally, we present the resulting response containing information about the state of one or all available indices currently running.

Parameters

FieldTypeDescription

index_name

string

Filter results for an index with a specific name.

The example in this section uses a non-existing project id.

Make sure you replace it with your Bitcoin mainnet or Bitcoin Testnet endpoint when issuing the API calls.

Don't have a project id? Here's a straightforward guide on how to obtain one!

Gives back the state of any accessible indices that are presently operating on the node.

POST https://bitcoin-mainnet.blastapi.io/<project-id>

Request Body

NameTypeDescription

jsonrpc*

string

1.0

id*

string

bwarelabs

method*

string

getindexinfo

params*

string

[]

{
    "result": {
        "txindex": {
            "synced": true,
            "best_block_height": 830409
        }
    },
    "error": null,
    "id": "bwarelabs"
}

Curl Request example

curl --location 'https://bitcoin-mainnet.blastapi.io/<project-id>' \
--header 'content-type: application/json;' \
--data '{
    "jsonrpc": "1.0",
    "id": "bwarelabs",
    "method": "getindexinfo",
    "params": []
}'

Last updated