Arcium LogoArcium TS SDK Docs

@arcium-hq/reader

Read-only SDK for querying Arcium network state on Solana.

Key exports:

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
getArciumProgramReturn an Anchor program instance for the Arcium program.
getArxNodeAccAddressDerive the ArxNode account address for a given offset.
getArxNodeAccAddressesReturn all ArxNode account addresses.
getArxNodeAccInfoFetch and parse an ArxNode account.
getClockAccAddressDerive the clock account address.
getClusterAccAddressDerive the cluster account address for a given offset.
getClusterAccAddressesReturn all Cluster account addresses.
getClusterAccInfoFetch and parse a Cluster account.
getCompDefAccAddressDerive the computation definition account address for a given MXE program ID and offset.
getCompDefAccInfoFetch and parse a ComputationDefinition account.
getComputationAccAddressDerive the computation account address for a given cluster and computation offset.
getComputationAccInfoFetch and parse a Computation account.
getComputationOffsetGet the computation offset from a transaction.
getComputationsInMempoolReturn all computation references in the mempool for a given account. Only non-stake computations are included.
getExecutingPoolAccAddressDerive the executing pool account address for a given cluster.
getFeePoolAccAddressDerive the fee pool account address.
getMempoolAccAddressDerive the mempool account address for a given cluster.
getMempoolPriorityFeeStatsCalculate priority fee statistics for computations in a mempool.
getMXEAccAddressDerive the MXE account address for a given MXE program ID.
getMXEAccAddressesReturn all MXE account addresses.
getMXEAccInfoFetch and parse an MXE account.
getMxeRecoveryAccInfoFetch and parse an MxeRecovery account.
getRecoveryClusterAccInfoFetch and parse a recovery cluster account.
subscribeComputationsSubscribe to computation events for an MXE program.
unsubscribeComputationsUnsubscribe from computation events.