1

How we can fetch the node identity(local node identity in snapshort) after running the node i would need it so that i can make process automatic to start the second node by using that node key

enter image description here

3

1 Answer 1

2

You can use curl command from cli to get the node identity using the following command:

curl -sS -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "system_localPeerId"}' http://localhost:9933/

Just replace the rpc url if you have hosted your node somewhere or if accessing the node locally than the above command is good to go.

1
  • Good answer. But please don't answer the duplicate question. And there were already a lot of similar questions like this. May 11, 2023 at 5:29

Your Answer

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

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