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:

  1. Network -> Stash -> Account Actions
  2. Click on validator (+)
  3. Set the stash account, controller account, value bonded and
  4. 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

1 Answer 1


The UI just calls the extrinsics as exposed by the staking module. Specifically -

Additional stuff of interest may be setController to change a controller, setPayee to adjust the reward destination and bondExtra should additional funds be bonded. These are all for management of the validator.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.