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
| Parameter | Type | Default value | Description |
|---|---|---|---|
provider | AnchorProvider | undefined | The Anchor provider to use for event listening. |
computationOffset | BN | undefined | The offset of the computation to wait for. |
mxeProgramId | PublicKey | undefined | The public key of the MXE program. |
commitment | Finality | 'confirmed' | (Optional) The desired finality/commitment level (default: 'confirmed'). |
Returns
Promise<string>
The transaction signature of the finalization event.