Arcium LogoArcium TS SDK Docs

subscribeComputations

subscribeComputations(conn, mxeProgramId, callback): Promise<number>

Subscribes to computation-related events for a given MXE program ID.

Parameters

ParameterTypeDescription
connConnectionThe Solana connection object.
mxeProgramIdPublicKeyThe public key of the MXE program.
callback(event, name) => voidCallback function to handle each computation event and its name.

Returns

Promise<number>

The subscription ID for the logs listener.

On this page