Tracking callbacks
Unlike regular transactions, a confidential transaction is not executed in sync with the chain, as the MPC execution runs in a separate environment. This means we can't wait for the computation completion in the same way we do with regular transactions, we have to wait for the computation to be completed which happens when the computation's callback is invoked in its MXE. The Arcium client library provides a way to handle this:
Await computation completion with awaitComputationFinalization
awaitComputationFinalization
Last updated