mirror of
https://github.com/alexgo-io/stacks-blockchain-api.git
synced 2026-01-12 16:53:19 +08:00
* 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
30 lines
725 B
JSON
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"
|
|
}
|
|
}
|
|
}
|
|
}
|