⚠️ Deprecation Notice
ModuleSDK was developed by Rhinestone and is no longer actively supported. For new projects, we recommend using the Rhinestone SDK instead.
getRecoveryConfig
Get the recovery configuration for an account, including the delay period and expiry time.
Usage
const config = await getRecoveryConfig({
account: {
address: '0x123...',
type: 'safe',
deployedOnChains: [8453],
initCode: '0x...' // optional
},
client: publicClient,
})Parameters
account
- Type:
Account
The account object.
client
- Type:
PublicClient
The rpc client to use for the chain you want to query.
Returns
config
- Type:
Promise<{delay: bigint; expiry: bigint}>
Object containing:
delay: The delay period before recovery can be executedexpiry: The timestamp when a recovery request expires
If the contract call fails, returns {delay: 0n, expiry: 0n}.