1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package atproto
4
5// schema: com.atproto.sync.getBlocks
6
7import (
8 "bytes"
9 "context"
10
11 "github.com/bluesky-social/indigo/lex/util"
12)
13
14// SyncGetBlocks calls the XRPC method "com.atproto.sync.getBlocks".
15//
16// did: The DID of the repo.
17func SyncGetBlocks(ctx context.Context, c util.LexClient, cids []string, did string) ([]byte, error) {
18 buf := new(bytes.Buffer)
19
20 params := map[string]interface{}{}
21 params["cids"] = cids
22 params["did"] = did
23 if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.getBlocks", params, nil, buf); err != nil {
24 return nil, err
25 }
26
27 return buf.Bytes(), nil
28}