Tooling
Module SDK
Modules
getSetMFAValidatorAction

⚠️ Deprecation Notice

ModuleSDK was developed by Rhinestone and is no longer actively supported. For new projects, we recommend using the Rhinestone SDK instead.

Rhinestone SDK Documentation (opens in a new tab)

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.