getBlocks method

Future<XRPCResponse<Uint8List>> getBlocks({
  1. required String did,
  2. required List<String> cids,
  3. Map<String, String>? $unknown,
  4. Map<String, String>? $headers,
  5. GetClient? $client,
})

Get data blocks from a given repo, by CID. For example, intermediate MST nodes, or records. Does not require auth; implemented by PDS.

https://atprotodart.com/docs/lexicons/com/atproto/sync/getBlocks

Implementation

Future<XRPCResponse<Uint8List>> getBlocks({
  required String did,
  required List<String> cids,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  GetClient? $client,
}) async =>
    await _ctx.get<Uint8List>(
      ns.comAtprotoSyncGetBlocks,
      headers: $headers,
      parameters: {
        'did': did,
        'cids': cids,
        ...?$unknown,
      },
      client: $client,
    );