org.cairnsproto.draft.listBlocks

Public block records, oldest first, optionally about one subject. A block changes no weight on its own; labelers weigh blocks as one signal.

Repository @cairnsproto.org did:plc:np7ezqujtsry4bkogisaabul namespace authority
Details · query
Kindquery
Authoritydraft.cairnsproto.org
Indexed
cid bafyreidecg5ygtkskmabvvndyakezd6semi73dos3of2dfuoway3ixzgai

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "blockView": {
      "properties": {
        "author": {
          "format": "did",
          "type": "string"
        },
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "record": {
          "ref": "org.cairnsproto.draft.block",
          "type": "ref"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "cid",
        "author",
        "record"
      ],
      "type": "object"
    },
    "main": {
      "description": "Public block records, oldest first, optionally about one subject. A block changes no weight on its own; labelers weigh blocks as one signal.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "blocks": {
              "items": {
                "ref": "#blockView",
                "type": "ref"
              },
              "type": "array"
            },
            "cursor": {
              "maxLength": 32,
              "type": "string"
            }
          },
          "required": [
            "blocks"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "maxLength": 32,
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "subject": {
            "description": "Keep blocks of this DID.",
            "format": "did",
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "org.cairnsproto.draft.listBlocks",
  "lexicon": 1
}