⚠️ Deprecation Notice
ModuleSDK was developed by Rhinestone and is no longer actively supported. For new projects, we recommend using the Rhinestone SDK instead.
getCompleteRecoveryAction
Generate the transaction data needed to complete an account recovery process.
Usage
const action = await getCompleteRecoveryAction({
client: publicClient,
account: '0x123...',
recoveryData: '0x...'
})Parameters
client
- Type:
PublicClient
The public client instance used to interact with the blockchain.
account
The address of the account being recovered.
recoveryData
- Type:
Hex(opens in a new tab)
The calldata containing the recovery execution details.
Returns
action
- Type:
Promise<Execution>
Returns an execution object containing:
to: Email recovery module contract addresstarget: Email recovery module contract addressvalue: Amount of native tokens to send (0)callData: Encoded function datadata: Encoded function data