mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 14:24:09 +01:00
Let's tell the caller what channel_type they got! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Added: JSON-RPC: `fundchannel`, `multifundchannel`, `fundchannel_start` and `openchannel_init`: new field `channel_type`.
76 lines
1.9 KiB
JSON
76 lines
1.9 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"psbt",
|
|
"channel_type",
|
|
"commitments_secured",
|
|
"funding_serial"
|
|
],
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "hex",
|
|
"description": "the channel id of the channel",
|
|
"maxLength": 64,
|
|
"minLength": 64
|
|
},
|
|
"psbt": {
|
|
"type": "string",
|
|
"description": "the (incomplete) PSBT of the funding transaction"
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"commitments_secured": {
|
|
"type": "boolean",
|
|
"enum": [
|
|
false
|
|
],
|
|
"description": "whether the *psbt* is complete"
|
|
},
|
|
"funding_serial": {
|
|
"type": "u64",
|
|
"description": "the serial_id of the funding output in the *psbt*"
|
|
},
|
|
"requires_confirmed_inputs": {
|
|
"type": "boolean",
|
|
"description": "Does peer require confirmed inputs in psbt?"
|
|
}
|
|
}
|
|
}
|