Upto this point in the documentation, it's easy to get a session key from calling rotate keys, however the way to call set_keys
is not shown. I don't have access to a PolkadotJS apps GUI right now and would like to change my keys for my validator node. How should I build this extrinsic, sign it and send it from the CLI?
Add a comment
|
1 Answer
For cli, you can use the polkadot-js api-cli -
$ polkadot-js-api --seed ... --tx tx.session.setKeys 0x....
There is also a docker image available with all the polkadot-js/tools
tools.
-
Hello, running
api --seed .. --tx tx.session.setKeys 0x... --ws ws://127.0.0.1:9944
gives me aError: You need to specify the command to execute, e.g. query.system.account
. Why is that? Commented Apr 20, 2022 at 10:26 -
Also it requires two arguments, what should the second arg be? Commented Apr 21, 2022 at 19:13