Polkadot Apps
    Preparing search index...

    Type Alias BatchUploadResult

    BatchUploadResult:
        | BatchUploadResultBase & {
            blockHash: string;
            kind: "transaction";
            success: true;
        }
        | BatchUploadResultBase & {
            kind: "preimage";
            preimageKey: string;
            success: true;
        }
        | BatchUploadResultBase & {
            error: string;
            kind: "transaction"
            | "preimage";
            success: false;
        }

    Result for one item in a batch upload.

    Discriminated on kind (upload path) and success (outcome). Use result.success to check for errors, then result.kind to access path-specific fields like blockHash or preimageKey.

    Type Declaration

    • BatchUploadResultBase & {
          blockHash: string;
          kind: "transaction";
          success: true;
      }
      • blockHash: string

        Block hash where the store transaction was included.

      • kind: "transaction"
      • success: true
    • BatchUploadResultBase & { kind: "preimage"; preimageKey: string; success: true }
      • kind: "preimage"
      • preimageKey: string

        Hex key returned by the host preimage API.

      • success: true
    • BatchUploadResultBase & {
          error: string;
          kind: "transaction" | "preimage";
          success: false;
      }
      • error: string

        Error message describing the failure.

      • kind: "transaction" | "preimage"
      • success: false