Tooling
Module SDK
Modules
getSocialRecoveryValidator

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

getSocialRecoveryValidator

Get the social recovery validator module object.

Usage

const module = getSocialRecoveryValidator({
  threshold: 2,
  guardians: ['0x123...'],
})

Parameters

threshold

  • Type: number

The threshold for the social recovery account.

guardians

  • Type: Address[]

The addresses of the guardians for the account.

hook (optional)

The address of the hook to use. This is only required for the Kernel account.

Returns

module

The social recovery module object.