Canton dAppBooster
    Preparing search index...
    • Submits ledger commands and tracks the transaction in lastTx, fed by the SDK's txChanged event. actAs defaults to the party useAccount reports, so a submit acts as the party the UI shows rather than the wallet's own primary.

      Returns UseExecuteResult

      with no CantonConnectProvider above it, and from execute where nothing is connected or no party is reported. A command that fails throws too, and lands in error.

      const { execute, lastTx } = useExecute()
      await execute({ commandId: 'claim-1', commands })
      lastTx?.status // 'pending' | 'signed' | 'executed' | 'failed'