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.