Polkadot Apps
    Preparing search index...

    Options for upload.

    Note: waitFor, timeoutMs, and onStatus only apply to the transaction upload path (when an explicit signer is used or the dev signer fallback is active). The preimage path delegates to the host which controls its own submission lifecycle — these options are ignored in that case.

    interface UploadOptions {
        gateway?: string;
        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.

    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.