My active and owner keys are the same. I want to change active key to be different from owner, for safety.
What command should I use?
EOS.IO Stack Exchange is a question and answer site for users and developers of distributed applications built on top of the blockchain operating system, EOS.IO. It only takes a minute to sign up.
Sign up to join this communityMy active and owner keys are the same. I want to change active key to be different from owner, for safety.
What command should I use?
Looks like I found the answer I was looking for.
cleos set account permission accountname active '{"threshold": 1, "keys": [{"key": "NEW_ACTIVE_PUBLIC_KEY", "weight": 1}]}' owner
When having weight 1 you can simply use this alias instead:
cleos set account permission accountname active NEW_ACTIVE_PUBLIC_KEY owner -p accountname@owner
After, you can check that it worked with:
cleos get account accountname