Tooling
Module SDK
Modules
getDeadmanSwitchConfig

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

getDeadmanSwitchConfig

Get the active configuration for the deadman switch module.

Usage

const config = await getDeadmanSwitchConfig({
  client,
  account,
})

Parameters

client

  • Type: PublicClient

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

account

The account to get the deadman switch configuration for.

Returns

config

  • Type: Promise<[number, number, Address]>

The config for the deadman switch module. The array contains the following values:

  1. Timestamp of the last transaction.
  2. The timeout period in seconds.
  3. The address of the recovery nominee.