info_get_status

This method returns the current status of a node.

Reference: Here

Parameters:

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

Returned Value:

  • api_version - string RPC API version

  • build_version - string Compiled node version.

  • chainspec_name - string Chainspec name, used to identify the currently connected network.

  • last_added_block_info - The minimal info of the last Block from the linear chain.

    • creator - Hex-encoded cryptographic public key, including the algorithm tag prefix.

    • era_id - integer EraID

    • height - integer block height

    • state_root_hash - string the state root hash digest

    • timestamp - string RFC 3339 timestamp

  • next_upgrade - Information about the next scheduled upgrade

    • activation_point - era_id or timestamp The first era to which the associated protocol version applies

    • protocol_version - Casper Platform protocol version.

  • our_public_signing_key - string Our public signing key.

  • peers - map of peer IDs to network addresses

    • address - integer network address

    • node_id - integer peer ID

  • round_length - integer The next round length if this node is a validator. A round length is the amount of time it takes to reach consensus on proposing a Block.

  • starting_state_root_hash - string The state root hash used at the start of the current session.

  • uptime - Integer Time that passed since the node has started.

{
  "id": 1,
  "jsonrpc": "2.0",
  "result": {
    "api_version": "1.4.13",
    "build_version": "1.4.13-c8db6a737-casper-mainnet",
    "chainspec_name": "casper-example",
    "last_added_block_info": {
      "creator": "01d9bf2148748a85c89da5aad8ee0b0fc2d105fd39d41a4c796536354f0ae2900c",
      "era_id": 1,
      "hash": "13c2d7a68ecdd4b74bf4393c88915c836c863fc4bf11d7f2bd930a1bbccacdcb",
      "height": 10,
      "state_root_hash": "0808080808080808080808080808080808080808080808080808080808080808",
      "timestamp": "2020-11-17T00:39:24.072Z"
    },
    "next_upgrade": {
      "activation_point": 42,
      "protocol_version": "2.0.1"
    },
    "our_public_signing_key": "01d9bf2148748a85c89da5aad8ee0b0fc2d105fd39d41a4c796536354f0ae2900c",
    "peers": [
      {
        "address": "127.0.0.1:54321",
        "node_id": "tls:0101..0101"
      }
    ],
    "round_length": "1m 5s 536ms",
    "starting_state_root_hash": "0202020202020202020202020202020202020202020202020202020202020202",
    "uptime": "13s"
  }
}    
curl https://mainnet.casper.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"id":1,"jsonrpc":"2.0","method":"info_get_status","params":[]}'

Last updated