1

I’ve a monerod on stagenet. How can I know it’s synced the blockchain?

Thanks

1 Answer 1

2

How do you know monerod has synced?

Multiple different ways:

  • If running interactively in a console, you'll see a message when synchronized or you can run status at any time which shows the same.

  • You can also run monerod status in another shell to get the same message.

  • You can call the daemon's RPC method get_info which has a property synchronized in the response. E.g.

    curl http://127.0.0.1:38081/json_rpc -d \
      '{"jsonrpc":"2.0","id":"0","method":"get_info"}'
    
    {
      "id": "0",
      "jsonrpc": "2.0",
      "result": {
        ...
        "synchronized": true,
        ...
      }
    }
    
  • You could watch the log file.

I’ve a monerod on stagenet.

Which network is irrelevant. All the above work, the only caveat with the RPC option is making sure you use the correct port number (18081 for mainnet, 28081 for testnet and 38081 for stagenet).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.