Arcium LogoArcium TS SDK Docs

@arcium-hq/reader

Type Aliases

Type AliasDescription
ArciumEventAll events emitted by the Arcium program, keyed by event name.
ArciumEventDataData structure for any Arcium event, as parsed from logs.
ArciumEventNameCapitalized event names, matching the format as emitted by the program.
ArciumInstructionNameValid instruction names from the Arcium IDL.
ArciumTypesArcium IDL types derived from the Arcium program interface.
ArxNodeAccountArxNode account data structure for individual computation nodes.
CallbackComputationIxCallback computation instruction type from the Arcium IDL.
ClusterAccountCluster account data structure containing node information.
ComputationAccountComputation account data structure tracking computation state.
ComputationDefinitionAccountComputation definition account containing circuit configuration.
ComputationReferenceReference to a computation in a mempool or executing pool.
ComputationStatusStatus values for a computation, as defined by the Arcium protocol.
ConnectionSolana Connection type alias for convenience.
MXEAccountMXE (Multi-party eXecution Environment) account data structure.
MxeRecoveryAccountMXE recovery account data structure tracking key recovery session state.
ProgramAnchor Program type alias with generic IDL support.
PublicKeySolana PublicKey type alias for convenience.
QueueComputationIxQueue computation instruction type from the Arcium IDL.
RecoveryClusterAccountRecovery cluster account data structure containing recovery peers information.

Functions

FunctionDescription
getArciumProgramReturns an Anchor program instance for the Arcium program.
getArxNodeAccAddressDerives the ArxNode account address for a given offset.
getArxNodeAccAddressesReturns all ArxNode account addresses.
getArxNodeAccInfoFetches and parses a given ArxNode account.
getClockAccAddressDerives the clock account address.
getClusterAccAddressDerives the cluster account address for a given offset.
getClusterAccAddressesReturns all Cluster account addresses.
getClusterAccInfoFetches and parses a given Cluster account.
getCompDefAccAddressDerives the computation definition account address for a given MXE program ID and offset.
getCompDefAccInfoFetches and parses a given ComputationDefinition account.
getComputationAccAddressDerives the computation account address for a given cluster and computation offset.
getComputationAccInfoFetches and parses a given Computation account.
getComputationOffsetGets the computation offset from a transaction.
getComputationsInMempoolReturns all computation references in the mempool for a given account. Only non-stake computations are included.
getExecutingPoolAccAddressDerives the executing pool account address for a given cluster.
getFeePoolAccAddressDerives the fee pool account address.
getMempoolAccAddressDerives the mempool account address for a given cluster.
getMempoolPriorityFeeStatsCalculates priority fee statistics for computations in a mempool.
getMXEAccAddressDerives the MXE account address for a given MXE program ID.
getMXEAccAddressesReturns all MXE account addresses.
getMXEAccInfoFetches and parses a given MXE account.
getMxeRecoveryAccInfoFetches and parses a given MxeRecovery account.
getRecoveryClusterAccInfoFetches and parses a given recovery cluster account.
subscribeComputationsSubscribes to computation-related events for a given MXE program ID.
unsubscribeComputationsUnsubscribes from computation-related events using the subscription ID.