getindexinfo - DigiByte

Example code for the getindexinfo json-rpc method. Сomplete guide on how to use getindexinfo json-rpc in GetBlock.io Web3 documentation.

Parameters

index_name - string, optional

Filter results for an index with a specific name.

Request

curl --location --request POST 'https://dgb.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "getindexinfo",
"params": [null],
"id": "getblock.io"}'

Response

{
    "error": null,
    "id": "getblock.io",
    "result": {
        "txindex": {
            "synced": true,
            "best_block_height": 680586
        },
        "basic block filter index": {
            "synced": true,
            "best_block_height": 680586
        }
    }
}

Last updated

© 2019-2024 GetBlock LLC. All rights reserved ID: 21835790. Address: Belgrade, Serbia.