⚠️ Deprecation Notice
ModuleSDK was developed by Rhinestone and is no longer actively supported. For new projects, we recommend using the Rhinestone SDK instead.
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
- Type:
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:
- Timestamp of the last transaction.
- The timeout period in seconds.
- The address of the recovery nominee.