uptime
control safe since 0.15.0returns the total uptime of the server in seconds.
↑ shares the docs page. Use Share this query below for a link with your current arg values.
Run this RPC
Call from your own code
Replace $BITCOIN_RPC_USER / $BITCOIN_RPC_PASSWORD with credentials from your bitcoind's bitcoin.conf,
and replace localhost:8332 with your node's RPC address.
Help
uptime
Returns the total uptime of the server.
Result:
n (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/