Polkadot Apps
    Preparing search index...

    Interface BatchUploadOptions

    Options for batchUpload.

    interface BatchUploadOptions {
        gateway?: string;
        onProgress?: (
            completed: number,
            total: number,
            current: BatchUploadResult,
        ) => void;
        onStatus?: (status: TxStatus) => void;
        timeoutMs?: number;
        waitFor?: WaitFor;
    }

    Hierarchy (View Summary)

    Index

    Properties

    gateway?: string

    IPFS gateway base URL (e.g., from getGateway("paseo")). If provided, result includes gatewayUrl.

    onProgress?: (
        completed: number,
        total: number,
        current: BatchUploadResult,
    ) => void

    Called after each item completes (success or failure).

    onStatus?: (status: TxStatus) => void

    Lifecycle status callback for UI progress. Transaction path only.

    timeoutMs?: number

    Timeout in ms. Default: 300_000 (5 min). Transaction path only.

    waitFor?: WaitFor

    When to resolve: "best-block" (default) or "finalized". Transaction path only.