I am currently working with a Substrate blockchain and I was wondering if there is a way to set a fixed Local Peer ID, instead of it being generated dynamically every time the node starts up. I have been unable to find any information on this in the documentation and would greatly appreciate any help or guidance on this matter. Thank you.

1 Answer 1


You can use Subkey to generate a node key, that you can then supply to the node using the --node-key option.

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.