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;
}
Type Declaration
- BatchUploadResultBase & {
blockHash: string;
kind: "transaction";
success: true;
}blockHash: string
kind: "transaction"
success: true
- BatchUploadResultBase & { kind: "preimage"; preimageKey: string; success: true }
kind: "preimage"
preimageKey: string
success: true
- BatchUploadResultBase & {
error: string;
kind: "transaction" | "preimage";
success: false;
}error: string
kind: "transaction" | "preimage"
success: false
Result for one item in a batch upload.
Discriminated on
kind(upload path) andsuccess(outcome). Useresult.successto check for errors, thenresult.kindto access path-specific fields likeblockHashorpreimageKey.