Skip to content

getStatus

katz edited this page Aug 17, 2020 · 12 revisions

getStatus method returns information about the current RPC Wallet state including the number of addresses, transactions, peers, and block information.

Request Format:

JSON-RPC

{  
  "method": "getStatus"
}

Response Format:

JSON-RPC

{
    "jsonrpc": "2.0",
    "result": {
        "addressCount": 1,
        "blockCount": 558450,
        "depositCount": 9,
        "knownBlockCount": 558450,
        "lastBlockHash": "c33ea5aa6eac5dd881659b1c9d2b54bceeca8e877c3b0e1159d678b42d3857e7",
        "peerCount": 8,
        "transactionCount": 39182
    }
}

Response Details:

Argument Description Format
addressCount Number of addresses in the container int
blockCount Node's known number of blocks int
depositCount Node's known number of blocks int
knownBlockCount Maximum known number of blocks of all seeds that are connected to the node int
lastBlockHash Hash of the last known block string
peerCount Connected peers number int
transactionCount Total number of transactions in the container int

Possible Errors:

  • Parse error - Incorrect formatting, JSON, or quotation marks used.
Clone this wiki locally