tryGetPastObject method

Future<ObjectRead> tryGetPastObject(
  1. String id,
  2. int version, {
  3. SuiObjectDataOptions? options,
})

Implementation

Future<ObjectRead> tryGetPastObject(
    String id,
    int version, {
      SuiObjectDataOptions? options
    }
  ) async {
	final data = await client.request(
		'sui_tryGetPastObject',
		[id, version, options?.toJson()]
	);
    return ObjectRead.fromJson(data);
}