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?
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?
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