Files
stacks-blockchain-api/docs/api/blocks/get-blocks.schema.json
2020-07-24 14:27:52 +02:00

31 lines
764 B
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "GET request that returns blocks",
"additionalProperties": false,
"title": "BlockListResponse",
"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/block.schema.json"
}
}
}
}