com.atproto.sync.getBlocks

atproto-lexicons.bsky.social

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get data blocks from a given repo, by CID. For example, intermediate MST nodes, or records. Does not require auth; implemented by PDS.",
      "errors": [
        {
          "name": "BlockNotFound"
        },
        {
          "name": "RepoNotFound"
        },
        {
          "name": "RepoTakendown"
        },
        {
          "name": "RepoSuspended"
        },
        {
          "name": "RepoDeactivated"
        }
      ],
      "output": {
        "encoding": "application/vnd.ipld.car"
      },
      "parameters": {
        "properties": {
          "cids": {
            "items": {
              "format": "cid",
              "type": "string"
            },
            "type": "array"
          },
          "did": {
            "description": "The DID of the repo.",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "did",
          "cids"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "com.atproto.sync.getBlocks",
  "lexicon": 1
}

Validate Record

Validate a record against com.atproto.sync.getBlocks

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:6msi3pj7krzih5qxqtryxlzw
CID
bafyreie5jvieoangaotlziavns65njosj5pklfqv6u5psgtkhdgmk25lpa
Indexed At
2026-02-18 19:02 UTC
AT-URI
at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.sync.getBlocks

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Get a blob associated with a given account. Returns the full blob as originally uploaded. Does not require auth; implemented by PDS.

  • Get data blocks needed to prove the existence or non-existence of record in the current version of repo. Does not require auth.

  • Export the full repository as a CAR file. Returns all record blocks, MST nodes, and the signed commit.

  • List blob CIDs for an account, since some repo revision. Does not require auth; implemented by PDS.

Lexicon Garden

@