Arcium LogoArcium TS SDK Docs

initMxePart2

initMxePart2(provider, clusterOffset, mxeProgramId, recoveryPeers, keygenOffset, keyRecoveryInitOffset, lutOffset, mxeAuthority?, confirmOptions?): Promise<string>

Finish MXE initialization (part 2). Reallocate recovery_cluster_acc to full size, initialize recovery_peers, and add the keygen computation to the mempool.

Parameters

ParameterTypeDescription
providerAnchorProviderAnchor provider to use for transactions.
clusterOffsetnumberCluster offset to associate with the MXE.
mxeProgramIdPublicKeyPublic key to use as the MXE program ID.
recoveryPeersnumber[]Array of 100 node offsets for recovery peers (0 for unused slots).
keygenOffsetBNComputation offset for the keygen computation.
keyRecoveryInitOffsetBNComputation offset for the key_recovery_init computation.
lutOffsetBNLookup table offset for the MXE's address lookup table.
mxeAuthority?PublicKeyOptional authority for the MXE (defaults to provider.publicKey).
confirmOptions?ConfirmOptionsTransaction confirmation options.

Returns

Promise<string>

Transaction signature.

On this page