78 lines
2.1 KiB
JSON
78 lines
2.1 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"tx",
|
|
"txid",
|
|
"outnum",
|
|
"channel_type",
|
|
"channel_id"
|
|
],
|
|
"properties": {
|
|
"tx": {
|
|
"type": "hex",
|
|
"description": "The raw transaction which funded the channel"
|
|
},
|
|
"txid": {
|
|
"type": "txid",
|
|
"description": "The txid of the transaction which funded the channel"
|
|
},
|
|
"outnum": {
|
|
"type": "u32",
|
|
"description": "The 0-based output index showing which output funded the channel"
|
|
},
|
|
"channel_id": {
|
|
"type": "hex",
|
|
"description": "The channel_id of the resulting channel",
|
|
"minLength": 64,
|
|
"maxLength": 64
|
|
},
|
|
"channel_type": {
|
|
"type": "object",
|
|
"description": "channel_type as negotiated with peer",
|
|
"added": "v24.02",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bits",
|
|
"names"
|
|
],
|
|
"properties": {
|
|
"bits": {
|
|
"type": "array",
|
|
"description": "Each bit set in this channel_type",
|
|
"added": "v24.02",
|
|
"items": {
|
|
"type": "u32",
|
|
"description": "Bit number"
|
|
}
|
|
},
|
|
"names": {
|
|
"type": "array",
|
|
"description": "Feature name for each bit set in this channel_type",
|
|
"added": "v24.02",
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"static_remotekey/even",
|
|
"anchor_outputs/even",
|
|
"anchors_zero_fee_htlc_tx/even",
|
|
"scid_alias/even",
|
|
"zeroconf/even"
|
|
],
|
|
"description": "Name of feature bit"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"close_to": {
|
|
"type": "hex",
|
|
"description": "The raw scriptPubkey which mutual close will go to; only present if *close_to* parameter was specified and peer supports `option_upfront_shutdown_script`"
|
|
},
|
|
"mindepth": {
|
|
"type": "u32",
|
|
"description": "Number of confirmations before we consider the channel active."
|
|
}
|
|
}
|
|
}
|