getBlocks method

Future<XRPCResponse<RepoBlocks>> getBlocks({
  1. required String did,
  2. required List<String> commitCids,
  3. Map<String, String>? headers,
})

Implementation

Future<core.XRPCResponse<RepoBlocks>> getBlocks({
  required String did,
  required List<String> commitCids,
  Map<String, String>? headers,
}) async =>
    await _ctx.get(
      ns.comAtprotoSyncGetBlocks,
      headers: headers,
      parameters: {
        'did': did,
        'cids': commitCids,
      },
      adaptor: toRepoBlocks,
      to: RepoBlocks.fromJson,
    );