Show / Hide Table of Contents

getstateheight 方法

查询 stateroot 高度。

此方法由插件提供,需要安装 StateServiceRpcServer 插件才可以调用。

调用示例

请求正文:

{
  "jsonrpc": "2.0",
  "method": "getstateheight",
  "params": [],
  "id": 1
}

响应正文:

{
    "jsonrpc": "2.0",
    "id": "1",
    "result": {
        "localrootindex": 602,
        "validatedrootindex": 602
    }
}