getstateheight Method

Queries the stateroot height.

[!Note]

You must install the plugin StateService and RpcServer before you can invoke the method.

Example

Request body:

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

Response body:

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