Tooling
Module SDK
Modules
getDeadmanSwitch

⚠️ 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)

getDeadmanSwitch

Get the deadman switch module.

Usage

const deadmanSwitch = await getDeadmanSwitch({
  client,
  account,
  moduleType: 'hook',
  nominee: '0x123...',
  timeout: 10000000,
})

Parameters

client

  • Type: PublicClient

The rpc client to use for the chain you want to query.

account

The account to get the deadman switch module for.

moduleType

  • Type: 'hook' | 'validator'

The type of the deadman switch module. Note that the module needs to be installed as both types.

nominee

The address of the recovery nominee.

timeout

  • Type: number

The inactivity timeout in seconds after which the recovery nominee can recover the account.

hook (optional)

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

Returns

module

The deadman switch module object.