readBlob method

Future<Uint8List> readBlob({
  1. required String blobId,
})

Read a full blob from storage nodes by fetching slivers and decoding.

  1. Fetches blob metadata from storage nodes (BCS encoded)
  2. Fetches primary slivers
  3. Decodes slivers back to original blob data
  4. Verifies the reconstructed blob by recomputing its metadata

Requires an encoder (typically WalrusBlobEncoder) to be set.

Mirrors the TS SDK's readBlob().

Implementation

Future<Uint8List> readBlob({required String blobId}) async {
  return retryOnPossibleEpochChange(() => _internalReadBlob(blobId: blobId));
}