Documentation exported from Bitcoin Core 0.17.0

uptime (0.17.0 RPC)

blockchain

control

generating

mining

network

rawtransactions

util

wallet

zmq

uptime

Returns the total uptime of the server.

Result:
ttt        (numeric) The number of seconds that the server has been running

Examples:
> bitcoin-cli uptime 
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "uptime", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/