Polkadot Apps
    Preparing search index...

    Interface BatchSubmitOptions

    Options for batchSubmitAndWatch. Extends SubmitOptions with batch mode.

    interface BatchSubmitOptions {
        mode?: BatchMode;
        mortalityPeriod?: number;
        onStatus?: (status: TxStatus) => void;
        timeoutMs?: number;
        waitFor?: WaitFor;
    }

    Hierarchy (View Summary)

    Index

    Properties

    mode?: BatchMode

    Batch execution mode. Default: "batch_all" (atomic, all-or-nothing).

    • "batch_all" — Atomic. Reverts all calls if any single call fails.
    • "batch" — Best-effort. Stops at first failure but earlier successful calls are not reverted.
    • "force_batch" — Like batch but continues executing remaining calls after failures (never aborts early).
    mortalityPeriod?: number

    Mortality period in blocks. Default: 256 (~43 minutes on Polkadot).

    onStatus?: (status: TxStatus) => void

    Called on each lifecycle transition for UI progress indicators.

    timeoutMs?: number

    Timeout in milliseconds. Default: 300_000 (5 minutes).

    waitFor?: WaitFor

    When to resolve the promise. Default: "best-block".