getObject method

Future<SuiObjectResponse> getObject(
  1. String objectId, {
  2. SuiObjectDataOptions? options,
})

Implementation

Future<SuiObjectResponse> getObject(String objectId,
    {SuiObjectDataOptions? options}) async {
  final data = await client.request('sui_getObject', [objectId, options?.toJson()]);
  return SuiObjectResponse.fromJson(data);
}