0

I know that peer explorer has an API to access all the IP addresses of NXT / Ardor nodes via: http://www.peerexplorer.com/peerexplorer-api

But say peer explorer is down. How would one get the IP addresses of other NXT / Ardor nodes via a locally installed NXT / Ardor node?

1

Use the getPeers API and specify the desired service(s). For example, to retrieve nodes with an open API (either HTTP or HTTPS) from an application, issue the following HTTP request:

https://localhost:7876/nxt?requestType=getPeers&service=API&service=API_SSL

You can use the API test page at http://localhost:7876/test from your browser to view the same information.

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.