Arcium LogoArcium TS SDK Docs

initKeyRecoveryExecution

initKeyRecoveryExecution(provider, originalMxeProgramId, backupMxeProgramId): Promise<string>

Initializes key recovery execution by creating the MxeRecoveryAccount and registering the key_recovery_final computation definition on the backup MXE. This is split into two parts due to Solana's 10KB per-instruction allocation limit.

Parameters

ParameterTypeDescription
providerAnchorProviderThe Anchor provider to use for transactions.
originalMxeProgramIdPublicKeyThe public key of the original MXE program being recovered.
backupMxeProgramIdPublicKeyThe public key of the backup MXE program that will take over.

Returns

Promise<string>

The transaction signature from part2.

On this page