Canton dApp Booster
    Preparing search index...

    Return shape of useExecute. execute resolves once the ledger has executed rather than at submission, and throws when nothing is connected; lastTx follows the wallet's own txChanged pushes, so it moves even while execute is still pending.

    interface UseExecuteResult {
        error: Error | undefined;
        execute: (params: PrepareExecuteParams) => Promise<unknown>;
        isExecuting: boolean;
        lastTx: TxStatusSnapshot | undefined;
        reset: () => void;
    }
    Index
    error: Error | undefined
    execute: (params: PrepareExecuteParams) => Promise<unknown>
    isExecuting: boolean
    lastTx: TxStatusSnapshot | undefined
    reset: () => void