monero/docs/schema/pub_chain_minimal.json
2024-09-10 16:29:48 -04:00

38 lines
1.1 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema",
"definitions": {
"binary32": {
"type": "string",
"description": "32-bytes binary data as hex",
"minLength": 64,
"maxLength": 64,
"pattern": "^[0-9A-Fa-f]{64}$"
},
"uint64": {
"type": "integer",
"minimum": 0,
"maximum": 18446744073709551615
}
},
"title": "json-minimal-chain_main",
"description": "Notification of new blocks added to main chain",
"type": "object",
"properties": {
"first_height": {
"description": "Height of the first block",
"$ref": "#/definitions/uint64"
},
"first_prev_id": {
"description": "The previous hash of the first block",
"$ref": "#/definitions/binary32"
},
"ids": {
"type": "array",
"description": "The hash of each new block, in order",
"minItems": 1,
"items": { "$ref": "#/definitions/binary32" }
}
},
"required": ["first_height", "first_prev_id", "ids"]
}