getMXEAccInfo
getMXEAccInfo(
arciumProgram,address,commitment?):Promise<{authority:PublicKey|null;bump:number;cluster:number|null;computationDefinitions:number[];fallbackClusters:number[];mxeProgramId:PublicKey;rejectedClusters:number[];utilityPubkeys:DecodeEnum<{kind:"enum";variants: [{fields: [{generic:"t"; }];name:"set"; }, {fields: [{generic:"t"; }, {vec:"bool"; }];name:"unset"; }]; },DecodedHelper<[{name:"abortReason";type: {kind:"enum";variants: [{name:"invalidMac"; }, {name:"expectedSentShare"; }, {name:"expectedFieldElement"; }, {name:"expectedAbort"; }, {name:"malformedData"; }, {name:"computationFailed"; }, {name:"internalError"; }, {name:"preprocessingStreamError"; }, {name:"divisionByZero"; }]; }; }, {name:"acccountAccessInfo";repr: {kind:"c"; };serialization:"bytemuck";type: {fields: [{name:"inner";type:"u16"; }];kind:"struct"; }; }, {name:"accountArgument";type: {fields: [{name:"pubkey";type:"pubkey"; }, {name:"offset";type:"u32"; }, {name:"length";type:"u32"; }];kind:"struct"; }; }],DecodedHelper<[{name:"abortReason";type: {kind:"enum";variants: [{name:"invalidMac"; }, {name:"expectedSentShare"; }, {name:"expectedFieldElement"; }, {name:"expectedAbort"; }, {name:"malformedData"; }, {name:"computationFailed"; }, {name:"internalError"; }, {name:"preprocessingStreamError"; }, {name:"divisionByZero"; }]; }; }, {name:"acccountAccessInfo";repr: {kind:"c"; };serialization:"bytemuck";type: {fields: [{name:"inner";type:"u16"; }];kind:"struct"; }; }, {name:"accountArgument";type: {fields: [{name:"pubkey";type:"pubkey"; }, {name:"offset";type:"u32"; }, {name:"length";type:"u32"; }];kind:"struct"; }; }],EmptyDefined>>>; }>
Fetches and parses a given MXE account.
Parameters
| Parameter | Type | Description |
|---|---|---|
arciumProgram | Program<Arcium> | The Anchor program instance. |
address | PublicKey | The public key of the MXE account. |
commitment? | Commitment | (Optional) RPC commitment level. |
Returns
Promise<{ authority: PublicKey | null; bump: number; cluster: number | null; computationDefinitions: number[]; fallbackClusters: number[]; mxeProgramId: PublicKey; rejectedClusters: number[]; utilityPubkeys: DecodeEnum<{ kind: "enum"; variants: [{ fields: [{ generic: "t"; }]; name: "set"; }, { fields: [{ generic: "t"; }, { vec: "bool"; }]; name: "unset"; }]; }, DecodedHelper<[{ name: "abortReason"; type: { kind: "enum"; variants: [{ name: "invalidMac"; }, { name: "expectedSentShare"; }, { name: "expectedFieldElement"; }, { name: "expectedAbort"; }, { name: "malformedData"; }, { name: "computationFailed"; }, { name: "internalError"; }, { name: "preprocessingStreamError"; }, { name: "divisionByZero"; }]; }; }, { name: "acccountAccessInfo"; repr: { kind: "c"; }; serialization: "bytemuck"; type: { fields: [{ name: "inner"; type: "u16"; }]; kind: "struct"; }; }, { name: "accountArgument"; type: { fields: [{ name: "pubkey"; type: "pubkey"; }, { name: "offset"; type: "u32"; }, { name: "length"; type: "u32"; }]; kind: "struct"; }; }], DecodedHelper<[{ name: "abortReason"; type: { kind: "enum"; variants: [{ name: "invalidMac"; }, { name: "expectedSentShare"; }, { name: "expectedFieldElement"; }, { name: "expectedAbort"; }, { name: "malformedData"; }, { name: "computationFailed"; }, { name: "internalError"; }, { name: "preprocessingStreamError"; }, { name: "divisionByZero"; }]; }; }, { name: "acccountAccessInfo"; repr: { kind: "c"; }; serialization: "bytemuck"; type: { fields: [{ name: "inner"; type: "u16"; }]; kind: "struct"; }; }, { name: "accountArgument"; type: { fields: [{ name: "pubkey"; type: "pubkey"; }, { name: "offset"; type: "u32"; }, { name: "length"; type: "u32"; }]; kind: "struct"; }; }], EmptyDefined>>>; }>
The MXEAccount object.