BTC
POST
GET
Last updated on January 1, 1970
1 min read
Method getindexinfo undefined ()
connect with JSON-RPC protocol
getindexinfo
Returns the status of one or all available indices currently running inthe node.
Parameters
index_name
- string, optional
Filter results for an index with a specific name.
Request
curl --location --request POST 'https://btc.getblock.io/mainnet/' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "getindexinfo",
"params": ["default"],
"id": "getblock.io"}'
Response
{
"result": {
"txindex": {
"synced": true,
"best_block_height": 680586
},
"basic block filter index": {
"synced": true,
"best_block_height": 680586
}
},
"error": null,
"id": "getblock.io"
}
Start Building with GetBlock RPCs for Free
Previous
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }
Next
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }