network.bsky.jetstream.getBlock

Download a single block within a sealed segment file by index. Returns the raw zstd-compressed block frame exactly as stored on disk.

Details · query
Kindquery
Authorityjetstream.bsky.network
Indexed
cid bafyreickwptzb475hw7wtmhhncga77hkzahhzsfbb2gd4tmccgsikaz7zy

Checks

Valid
  • unlimited-string defs.main.parameters.properties.segmentNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Download a single block within a sealed segment file by index. Returns the raw zstd-compressed block frame exactly as stored on disk.",
      "errors": [
        {
          "description": "No sealed segment exists for the given name.",
          "name": "SegmentNotFound"
        },
        {
          "description": "blockIndex is >= the segment's block_count.",
          "name": "BlockNotFound"
        }
      ],
      "output": {
        "encoding": "application/octet-stream"
      },
      "parameters": {
        "properties": {
          "blockIndex": {
            "description": "Zero-based block index within the segment. Must be < the segment's block_count.",
            "minimum": 0,
            "type": "integer"
          },
          "segment": {
            "description": "The sealed segment filename, e.g. seg_000000002a.jss.",
            "type": "string"
          }
        },
        "required": [
          "segment",
          "blockIndex"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "network.bsky.jetstream.getBlock",
  "lexicon": 1
}