⚡ We welcome businesses to test our enterprise-grade service

dgb
DigiByte (DGB)

Method: POST getindexinfo

dropdown

方法 RPC getindexinfo 例如 DigiByte (DGB)

POST getindexinfo

返回节点中当前运行的一个或所有可用索引的状态。

Parameters

index_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": {
        "basic block filter index": {
            "best_block_height": 680586,
            "synced": true
        },
        "txindex": {
            "best_block_height": 680586,
            "synced": true
        }
    }
}