getRequestTimelockedModuleConfigExecution
Get the action to request a timelocked action to change configurations on the account. This includes installing or uninstalling modules.
Usage
const timelockedExecutionAction = getRequestTimelockedModuleConfigExecution({
moduleTypeId: 1,
module: "0x123...",
data: "0x123...",
isInstall: true,
additionalWait: 0,
});
Parameters
moduleTypeId
- Type:
number
The module type ID, according to ERC-7579.
module
The address of the module to install or uninstall.
data
- Type:
Hex
(opens in a new tab)
The data to pass to the module.
isInstall
- Type:
boolean
Whether to install or uninstall the module.
additionalWait
- Type:
number
The additional wait time in seconds before the execution can occur, on top of the set wait period.
Returns
action
- Type:
Action
The action to request the timelocked account configuration.