sendUpdateValidatorTransaction method
Sends a `update_validator` transaction to the network. You need to provide the address of a basic account (the sender wallet) to pay the transaction fee. Since JSON doesn't have a primitive for Option (it just has the null primitive), we can't have a double Option. So we use the following work-around for the signal data: null = No change in the signal data field. \"\" = Change the signal data field to None. \"0x29a4b...\" = Change the signal data field to Some(0x29a4b...).
Params
| Parameter | Type | Required |
|---|---|---|
senderWallet | string | Yes |
validatorWallet | string | Yes |
newSigningSecretKey | string | No |
newVotingSecretKey | string | No |
newRewardAddress | string | No |
newSignalData | string | No |
fee | number | Yes |
validityStartHeight | string | number | Yes |
Result
| Property | Type | Required |
|---|---|---|
Blake2bHash | string | Yes |