// Code generated by glex; DO NOT EDIT. // Lexicon schema: com.atproto.sync.getBlocks package comatproto import ( "bytes" "context" glex "github.com/streamplace/glex/runtime" ) // SyncGetBlocks calls the XRPC method "com.atproto.sync.getBlocks". // // Get data blocks from a given repo, by CID. For example, intermediate MST nodes, or records. Does not require auth; implemented by PDS. // // did: The DID of the repo. func SyncGetBlocks(ctx context.Context, c glex.LexClient, cids []string, did string) ([]byte, error) { buf := new(bytes.Buffer) params := map[string]interface{}{} params["cids"] = cids params["did"] = did if err := c.LexDo(ctx, glex.Query, "", "com.atproto.sync.getBlocks", params, nil, buf); err != nil { return nil, err } return buf.Bytes(), nil }