mirror of
https://github.com/monero-project/monero.git
synced 2025-02-10 09:48:34 -05:00
38 lines
1.1 KiB
JSON
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"]
|
|
}
|