ModuleSDK
Modules
getSetMFAValidatorAction

getSetMFAValidatorAction

Get the action to add a new sub-validator to the multi-factor module.

Usage

const action = getSetMFAValidatorAction({
  validatorAddress: "0x123...",
  validatorId: "0x123...",
  newValidatorData: "0x123...",
});

Parameters

validatorAddress

The address of the multi-factor sub-validator to add.

validatorId

The ID of the multi-factor sub-validator to add.

newValidatorData

The data of the new multi-factor sub-validator to add. For example, this might be the owner configuration.

Returns

action

The action to add the sub-validator.