getDisallowValidatorRecoveryAction
Generate the transaction data needed to remove a validator's recovery permissions.
Usage
const action = await getDisallowValidatorRecoveryAction({
client: publicClient,
validator: '0x123...',
prevValidator: '0x456...',
recoverySelector: '0x...'
})
Parameters
client
- Type:
PublicClient
The public client instance used to interact with the blockchain.
validator
The address of the validator to remove.
prevValidator
The address of the previous validator in the validators linked list.
recoverySelector
- Type:
Hex
(opens in a new tab)
The function selector to disallow. Must match the currently configured selector for the validator.
Returns
action
- Type:
Promise<Execution>
Returns an execution object containing:
to
: Email recovery module contract addresstarget
: Email recovery module contract addressvalue
: Amount of native tokens to send (0)callData
: Encoded function datadata
: Encoded function data