mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 10:39:49 +01:00
2ddecdc95a
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Fixed: doc: Epic documentation rewrite: each now lists complete and accurate JSON output, tested against testsuite.
40 lines
949 B
JSON
40 lines
949 B
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [ "reservations" ],
|
|
"properties": {
|
|
"reservations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [ "txid", "vout", "was_reserved", "reserved", "reserved_to_block" ],
|
|
"properties": {
|
|
"txid": {
|
|
"type": "txid",
|
|
"description": "the transaction id"
|
|
},
|
|
"vout": {
|
|
"type": "u32",
|
|
"description": "the output number which was reserved"
|
|
},
|
|
"was_reserved": {
|
|
"type": "boolean",
|
|
"description": "whether the input was already reserved"
|
|
},
|
|
"reserved": {
|
|
"type": "boolean",
|
|
"enum": [ true ],
|
|
"description": "whether the input is now reserved"
|
|
},
|
|
"reserved_to_block": {
|
|
"type": "u32",
|
|
"description": "what blockheight the reservation will expire"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|