In this video Joe Petrowski demonstrates a command which allows us to set a stake and also choose a reward destination. But unfortunately some of the command gets obscured by their video picture.
As I've narrowed it down, I require a step-by-step procedure that shows us
- How to use polkadot-api-cli to sign and submit a session key (set session keys)
- The command for how to set validator prefernces i.e call staking.validate/chill
Edit #1 : I may have figured out how to set validator prefs: I get a json response with :
yarn run:api --seed .. tx.staking.validate '["30", false]' --ws ..
However, I don't see a commission set to 30%. I've tried it with 30
and "30"
both. I've also tried putting the second arg "No"
instead of false and both seemed to work. However I'd like to set the commission % properly.