Arcium LogoArcium TS SDK Docs

initMxePart2

initMxePart2(provider, clusterOffset, mxeProgramId, keygenOffset, keyRecoveryInitOffset, recoveryPeers, 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.
keygenOffsetBNComputation offset for the keygen computation.
keyRecoveryInitOffsetBNComputation offset for the key_recovery_init computation.
recoveryPeersnumber[]Recovery peer node offsets. Slots set to 0 are treated as unused. The non-zero count must be either 0 (recovery disabled) or at least MIN_RECOVERY_PEERS (4). The array is padded with zeros up to MAX_RECOVERY_PEERS (100); passing more than that throws.
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