getMXEPublicKey
getMXEPublicKey(
provider
,mxeProgramID
):Promise
<null
|Uint8Array
<ArrayBufferLike
>>
Fetches and extracts the MXE public key from the MXE account.
Parameters
Parameter | Type | Description |
---|---|---|
provider | AnchorProvider | The Anchor provider to use for fetching accounts. |
mxeProgramID | PublicKey | The public key of the MXE program. |
Returns
Promise
<null
| Uint8Array
<ArrayBufferLike
>>
The MXE's x25519 public key as a Uint8Array, or null if not set.