Arcium LogoArcium TS SDK Docs

awaitComputationFinalization

awaitComputationFinalization(provider, computationOffset, mxeProgramId, commitment): Promise<string>

Waits for the finalization of a computation by listening for the finalizeComputationEvent. Resolves with the transaction signature once the computation is finalized.

Parameters

ParameterTypeDefault valueDescription
providerAnchorProviderundefinedThe Anchor provider to use for event listening.
computationOffsetBNundefinedThe offset of the computation to wait for.
mxeProgramIdPublicKeyundefinedThe public key of the MXE program.
commitmentFinality'confirmed'(Optional) The desired finality/commitment level (default: 'confirmed').

Returns

Promise<string>

The transaction signature of the finalization event.

On this page