getSnapshots method

Future<MixinResponse<List<SafeSnapshot>>> getSnapshots({
  1. required String assetId,
  2. String? offset,
  3. int limit = 30,
  4. String? opponent,
  5. String? destination,
  6. String? tag,
})

Implementation

Future<MixinResponse<List<SafeSnapshot>>> getSnapshots({
  required String assetId,
  String? offset,
  int limit = 30,
  String? opponent,
  String? destination,
  String? tag,
}) =>
    MixinResponse.requestList<SafeSnapshot>(
      dio.get('/safe/snapshots', queryParameters: <String, dynamic>{
        'asset': assetId,
        'offset': offset,
        'limit': limit,
        'opponent': opponent,
        'destination': destination,
        'tag': tag,
      }),
      SafeSnapshot.fromJson,
    );