getArxNodeAccInfo
getArxNodeAccInfo(
arciumProgram,address,commitment?):Promise<{bump:number;clusterMembership:DecodeEnum<{kind:"enum";variants: [{name:"inactive"; }, {fields: ["u32"];name:"active"; }, {fields: ["u32"];name:"proposed"; }]; },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>>>;config: {authority:PublicKey;callbackAuthority:PublicKey; };cuCapacityClaim:BN;isActive:boolean;metadata: {ip:number[];location:number;peerId:number[]; };primaryStakingAccount:PublicKey; }>
Fetches and parses a given ArxNode account.
Parameters
| Parameter | Type | Description |
|---|---|---|
arciumProgram | Program<Arcium> | The Anchor program instance. |
address | PublicKey | The public key of the ArxNode account. |
commitment? | Commitment | (Optional) RPC commitment level. |
Returns
Promise<{ bump: number; clusterMembership: DecodeEnum<{ kind: "enum"; variants: [{ name: "inactive"; }, { fields: ["u32"]; name: "active"; }, { fields: ["u32"]; name: "proposed"; }]; }, 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>>>; config: { authority: PublicKey; callbackAuthority: PublicKey; }; cuCapacityClaim: BN; isActive: boolean; metadata: { ip: number[]; location: number; peerId: number[]; }; primaryStakingAccount: PublicKey; }>
The ArxNodeAccount object.