iridium_walletd getStatus method
The getStatus method returns information about the current RPC Wallet state: block_count, known_block_count, last_block_hash and peer_count.
No input :
Output :
Argument | Description | Format | Example |
---|---|---|---|
blockCount | Node's known number of blocks | uint32 | 123456 |
knownBlockCount | Maximum known number of blocks of all seeds that are connected to the node | uint32 | 123456 |
lastBlockHash | Hash of the last known block | string | 8a6f1cb7ed7a9db4751d7b283a0482baff20567173dbfae136c9bceb188e51c4 |
peerCount | Connected peers number | uint32 | 6 |
Input Example:
{ "params":{}, "jsonrpc":"2.0", "id":"test", "method":"getStatus" }
$ 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 } }