Arcium LogoArcium TS SDK Docs

initMxePart1

initMxePart1(provider, mxeProgramId, recoveryPeers, confirmOptions?): Promise<string>

Initialize an MXE (part 1). Due to Solana's 10KB per-instruction allocation limit, this only partially allocates recovery_cluster_acc. Call initMxePart2 afterwards to finish allocation and add keygen to mempool.

Parameters

ParameterTypeDescription
providerAnchorProviderAnchor provider to use for transactions.
mxeProgramIdPublicKeyPublic key to use as the MXE program ID.
recoveryPeersnumber[]Array of 100 node offsets for recovery peers (0 for unused slots).
confirmOptions?ConfirmOptionsTransaction confirmation options.

Returns

Promise<string>

Transaction signature.

On this page