getBlobType method

Future<String> getBlobType()

Get the Sui Move type for Walrus Blob objects.

Returns <typeOriginPackageId>::blob::Blob where the package ID is the type origin — the original package where Blob was first defined. This is needed for StructType filters because Sui stamps object types with the original defining package ID.

Mirrors TS SDK's getBlobType() + #getPackageId().

Implementation

Future<String> getBlobType() async {
  final packageId = await _stateReader.getPackageId();
  return '$packageId::blob::Blob';
}