ModuleSDK
Modules
Omni Account
getAccountLockerHook

getAccountLockerHook

Get the module installation data for the account locker hook. This hook enforces the resource locks on the account.

Usage

const module = getAccountLockerHook({
  isOmniMode: true,
});

Parameters

isOmniMode

  • Type: boolean

Whether the account locker is in omni mode, meaning that the entire user balance is locked.

hook (optional)

The address of the hook module to associate with. This is only required for the Kernel account.

Returns

module

The account locker hook module object.