2021-05-26 07:52:01 +02:00
|
|
|
{
|
2021-11-04 15:15:51 +01:00
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"type"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"type": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"mutual",
|
|
|
|
"unilateral",
|
|
|
|
"unopened"
|
|
|
|
],
|
|
|
|
"description": "Whether we successfully negotiated a mutual close, closed without them, or discarded not-yet-opened channel"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"mutual",
|
|
|
|
"unilateral"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"tx",
|
|
|
|
"txid"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"type": {},
|
|
|
|
"tx": {
|
|
|
|
"type": "hex",
|
|
|
|
"description": "the raw bitcoin transaction used to close the channel (if it was open)"
|
|
|
|
},
|
|
|
|
"txid": {
|
|
|
|
"type": "txid",
|
|
|
|
"description": "the transaction id of the *tx* field"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"else": {
|
|
|
|
"additionalProperties": false,
|
2021-05-26 07:52:01 +02:00
|
|
|
"properties": {
|
2021-11-04 15:15:51 +01:00
|
|
|
"type": {}
|
2021-05-26 07:52:01 +02:00
|
|
|
}
|
2021-11-04 15:15:51 +01:00
|
|
|
}
|
2021-05-26 07:52:01 +02:00
|
|
|
}
|