1

If I connect to a remote RPC node, is there a request to determine what release of Monero it is running?

For example, I might prefer an RPC node running v15.0.0 including the recent side channel mitigation.

I have already looked at https://web.getmonero.org/resources/developer-guides/ but I cant seem to find a request that gives me this information.

0

So long as the node is not running with the restricted RPC (i.e. --restricted-rpc), you can check its version by calling get_info. E.g.

curl http://127.0.0.1:18081/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_info"}'

The result object has a version field like: "version": "0.15.0.1-release"

| improve this answer | |
  • Actually, I tried this already, but it does not work for all nodes. Maybe, I should specify that I am interested mainly in public remote nodes. If you try curl -X POST http://node.moneroworld.com:18089/get_info you will see that sometimes you get an output as you quote, but mostly you get "version": "" – PyrolitePancake Nov 29 '19 at 9:26
  • I am really confused why there is this difference in response?? – PyrolitePancake Nov 29 '19 at 9:28
  • I should have added that only nodes run without --restricticted-rpc will show this. – jtgrassie Nov 29 '19 at 15:15
  • If you are using a third party's node, its exact version is none of your business. This information is withheld to diminish fingerprinting possibilities (though there's probably a lot that can be used still). Morever, if the node isn't yours, it could well lie. Last, the side channel fixes are wallet side. – user36303 Nov 30 '19 at 23:33
  • This is true. Here is obviously not the right place for a discussion on it, but, I think we may want to include a major version number that's not restricted. All nodes are expected to be on the same consensus so off the top of my head I don't think it's a privacy issue (especially for public remote nodes). Anyway, yes, wrong place for this discussion! – jtgrassie Dec 1 '19 at 0:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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