Arcium LogoArcium TS SDK Docs

@arcium-hq/reader

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

Key exports:

Interfaces

InterfaceDescription
MempoolPriorityFeeStatsStatistics about priority fees for computations in a mempool.

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.
ComputationEventDataData structure for computation events (events that have computationOffset).
ComputationEventNameComputation event names that all have computationOffset field.
ComputationFeeFee information for a computation, tagged by the source it was read from.
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.
FindInstructionFinds an instruction type from the Arcium IDL by name, avoiding fragile hardcoded numeric indices.
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.
getArciumSignerAccAddressDerive the Arcium signer account address used by an MXE program when invoking the Arcium program. Unlike most other helpers in this module, this PDA is derived under the MXE program ID (the caller), not the Arcium program ID - Arcium verifies the seed via seeds::program = _mxe_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.
getComputationFeeFetch a live computation's on-chain fee by its offset.
getComputationFeeFromQueueTxDecode a closed computation's raw fee inputs from its queue_computation transaction.
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.
getFailureClaimAccAddressDerive the failure claim account address for a given MXE program and computation offset.
getFeePoolAccAddressDerive the fee pool account address.
getLookupTableAddressDerive the address lookup table address for an MXE program.
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.
getMxeRecoveryAccAddressDerive the MXE recovery account address for a key recovery session.
getMxeRecoveryAccInfoFetch and parse an MxeRecovery account.
getOperatorAccAddressDerive the operator account address for a given operator signer.
getRawCircuitAccAddressDerive the raw circuit account address for a given computation definition and index.
getRecoveryClusterAccAddressDerive the recovery cluster account address for a given MXE program ID.
getRecoveryClusterAccInfoFetch and parse a recovery cluster account.
getRecoveryPeerAccAddressDerive the recovery peer account address for a given recovery peer offset.
subscribeComputationsSubscribe to computation events for an MXE program.
unsubscribeComputationsUnsubscribe from computation events.

On this page