GET /blocks/recent

获取最新的块

按创建时间倒序排序。

:param num: 获取的块数量 :param resolver: 限定解析器类型, None则不限定

Query parameters

  • num integer

    Default value is 10.

  • resolver string | null

Responses

  • 200 application/json

    Successful Response

    Hide response attributes Show response attributes object
    • id integer | null
    • created_at string(date-time)
    • updated_at string(date-time)
    • storage integer | null
    • resolver string Required
    • content string Required
  • 422 application/json

    Validation Error

    Hide response attribute Show response attribute object
    • detail array[object]
      Hide detail attributes Show detail attributes object
      • loc array[string | integer] Required
      • msg string Required
      • type string Required
GET /blocks/recent
curl \
 --request GET 'http://api.example.com/blocks/recent'
Response examples (200)
[
  {
    "id": 42,
    "created_at": "2025-05-04T09:42:00Z",
    "updated_at": "2025-05-04T09:42:00Z",
    "storage": 42,
    "resolver": "string",
    "content": "string"
  }
]
Response examples (422)
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}