Arcium LogoArcium TS SDK Docs

getMXEPublicKey

getMXEPublicKey(provider, mxeProgramId): Promise<Uint8Array<ArrayBufferLike> | null>

Fetch and extract the MXE X25519 public key from the MXE account.

Parameters

ParameterTypeDescription
providerAnchorProviderAnchor provider to use for fetching accounts.
mxeProgramIdPublicKeyPublic key of the MXE program.

Returns

Promise<Uint8Array<ArrayBufferLike> | null>

MXE's X25519 public key as a Uint8Array, or null if not set.

On this page