Polkadot Apps
    Preparing search index...

    Function resolveUploadStrategy

    • Determine the upload strategy for the Bulletin Chain.

      Resolution order:

      1. If an explicit signer is provided, use it directly (backwards-compatible path).
      2. If running inside a host container (Polkadot Desktop / Mobile) and @novasamatech/product-sdk is available, use the host preimage API — the host signs and submits the transaction automatically.
      3. Otherwise fall back to Alice's dev signer (pre-funded on test chains).

      Parameters

      • OptionalexplicitSigner: PolkadotSigner

        Optional signer provided by the caller. When present, skips auto-detection entirely.

      Returns Promise<UploadStrategy>

      The resolved upload strategy.