getBlobIdFromObjectId method
Look up the base64 blob ID for a Sui Blob object given its object ID.
Reads the on-chain Blob struct and extracts the blob_id field,
converting the u256 value to URL-safe base64.
Returns null if the object doesn't exist or isn't a Blob.
Example:
final blobId = await client.getBlobIdFromObjectId(
objectId: '0xdd43ffc2...',
);
Implementation
Future<String?> getBlobIdFromObjectId({required String objectId}) async {
final info = await getBlobObjectInfo(objectId: objectId);
return info?['blobId'] as String?;
}