# get_ntp_info

The get_ntp_info command outputs the current ntp information in the xwc_client and xwc_node programs.

request

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

response

{
    "id": 1,
    "jsonrpc": "2.0",
    "result": [
        [
            "cli_wallet",
            {
                "_last_valid_ntp_reply_received_time": "2019-06-13T00:55:45",
                "_last_ntp_delta_initialized": true,
                "_last_ntp_delta_microseconds": -1608972
            }
        ],
        [
            "witness_node",
            {
                "_last_valid_ntp_reply_received_time": "2019-06-13T00:21:21",
                "_last_ntp_delta_initialized": true,
                "_last_ntp_delta_microseconds": -1595806
            }
        ]
    ]
}

return parameter

  • _last_valid_ntp_reply_received_time: the time when the ntp response was last received
  • _last_ntp_delta_initialized: whether the ntp error has been corrected
  • _last_ntp_delta_microseconds: error microseconds