@arcium-hq/clientFunctions
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
| Parameter | Type | Description |
|---|---|---|
provider | AnchorProvider | Anchor provider to use for transactions. |
clusterOffset | number | Cluster offset to associate with the MXE. |
mxeProgramId | PublicKey | Public key to use as the MXE program ID. |
recoveryPeers | number[] | Array of 100 node offsets for recovery peers (0 for unused slots). |
keygenOffset | BN | Computation offset for the keygen computation. |
keyRecoveryInitOffset | BN | Computation offset for the key_recovery_init computation. |
lutOffset | BN | Lookup table offset for the MXE's address lookup table. |
mxeAuthority? | PublicKey | Optional authority for the MXE (defaults to provider.publicKey). |
confirmOptions? | ConfirmOptions | Transaction confirmation options. |
Returns
Promise<string>
Transaction signature.