I was wondering how to add a validator to a substrate chain using the API. I want to replicate the steps in the polkadot.js app:
- Network -> Stash -> Account Actions
- Click on validator (+)
- Set the stash account, controller account, value bonded and
- Set the keys from rotateKeys and the reward.
I can not find how the UI (what APIs) does it call to do steps 3 and 4.
Thanks very much Regards