The getStatus method returns information about the current RPC Wallet state: block_count, known_block_count, last_block_hash and peer_count.

back to methods summary

No input :

Output :

blockCountNode's known number of blocks uint32 123456
knownBlockCountMaximum known number of blocks of all seeds that are connected to the node uint32 123456
lastBlockHash Hash of the last known block string 8a6f1cb7ed7a9db4751d7b283a0482baff20567173dbfae136c9bceb188e51c4
peerCountConnected peers number uint32 6

Input Example:


$ curl -s -X POST -d '{"params":{},"jsonrpc":"2.0","id":"test","method":"getStatus"}' localhost:14101/json_rpc | jq -C

Return example:

  "id": "test",
  "jsonrpc": "2.0",
  "result": {
    "blockCount": 31046,
    "knownBlockCount": 31046,
    "lastBlockHash": "9b65c2e14cf7578a506cbb9c55027962e3c45299abd9f9aba86f79f9092b28bc",
    "peerCount": 2

back to methods summary