multiGetObjects method

Future<List<SuiObjectResponse>> multiGetObjects(
  1. List<String> objectIds, {
  2. SuiObjectDataOptions? options,
})

Implementation

Future<List<SuiObjectResponse>> multiGetObjects(List<String> objectIds,
    {SuiObjectDataOptions? options}) async {
  final data =
      await client.request('sui_multiGetObjects', [objectIds, options?.toJson()]);
  List<SuiObjectResponse> list = [];
  for(var response in data){
    list.add(SuiObjectResponse.fromJson(response));
  }
  return list;
}