-
Notifications
You must be signed in to change notification settings - Fork 400
/
getBlocks.json
35 lines (35 loc) · 950 Bytes
/
getBlocks.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"lexicon": 1,
"id": "com.atproto.sync.getBlocks",
"defs": {
"main": {
"type": "query",
"description": "Get data blocks from a given repo, by CID. For example, intermediate MST nodes, or records. Does not require auth; implemented by PDS.",
"parameters": {
"type": "params",
"required": ["did", "cids"],
"properties": {
"did": {
"type": "string",
"format": "did",
"description": "The DID of the repo."
},
"cids": {
"type": "array",
"items": { "type": "string", "format": "cid" }
}
}
},
"output": {
"encoding": "application/vnd.ipld.car"
},
"errors": [
{ "name": "BlockNotFound" },
{ "name": "RepoNotFound" },
{ "name": "RepoTakendown" },
{ "name": "RepoSuspended" },
{ "name": "RepoDeactivated" }
]
}
}
}