Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
walletd_getstatus [2018/02/27 14:37]
stevebrush
walletd_getstatus [2019/01/11 00:47] (current)
Line 1: Line 1:
 ==== iridium_walletd getStatus method ==== ==== 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.
  
 [[iridium_walletd_rpc_call#​Iridium RPC Wallet API methods summary|back to methods summary]] [[iridium_walletd_rpc_call#​Iridium RPC Wallet API methods summary|back to methods summary]]
 +
 +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:
 +
 +<code json>
 +{  ​
 +  '​params':​{  ​
 +  },
 +  '​jsonrpc':'​2.0',​
 +  '​id':'​test',​
 +  '​method':'​getStatus'​
 +}
 +</​code>​
 +
 +Return example:
 +
 +<code json>
 +{  ​
 +  '​jsonrpc':'​2.0',​
 +  '​id':'​test',​
 +  '​result':​{  ​
 +     '​peerCount':​2,​
 +     '​blockCount':​1,​
 +     '​lastBlockHash':'​8a6f1cb7ed7a9db4751d7b283a0482baff20567173dbfae136c9bceb188e51c4',​
 +     '​knownBlockCount':​0
 +  }
 +}
 +</​code>​
  
  
 [[iridium_walletd_rpc_call#​Iridium RPC Wallet API methods summary|back to methods summary]] [[iridium_walletd_rpc_call#​Iridium RPC Wallet API methods summary|back to methods summary]]