Files
stacks-blockchain-api/docs/api/blocks/get-nakamoto-blocks.schema.json
Rafael Cárdenas ceb7be08da feat: add /extended/v2/blocks endpoint with burn block filters (#1769)
* chore: add typebox

* feat: add blocks v2 endpoint

* chore: add types

* fix: v2 query

* fix: tests

* chore: tweaks

* docs: openapi

* fix: exports

* fix: tests

* fix: tokens router

* fix: adjust burn block hash regex
2023-12-14 09:38:29 -06:00

30 lines
725 B
JSON

{
"description": "GET request that returns blocks",
"additionalProperties": false,
"title": "NakamotoBlockListResponse",
"type": "object",
"required": ["results", "limit", "offset", "total"],
"properties": {
"limit": {
"type": "integer",
"maximum": 30,
"description": "The number of blocks to return"
},
"offset": {
"type": "integer",
"description": "The number to blocks to skip (starting at `0`)",
"default": 0
},
"total": {
"type": "integer",
"description": "The number of blocks available"
},
"results": {
"type": "array",
"items": {
"$ref": "../../entities/blocks/nakamoto-block.schema.json"
}
}
}
}