readBlob method
Read a full blob from storage nodes by fetching slivers and decoding.
- Fetches blob metadata from storage nodes (BCS encoded)
- Fetches primary slivers
- Decodes slivers back to original blob data
- 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));
}