core-lightning/doc/schemas/fundchannel_start.schema.json
Rusty Russell 17d0d006d2 fundchannel_start & multifundchannel: add channel_type.
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`.
2024-01-29 13:40:34 +10:30

70 lines
2 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"funding_address",
"scriptpubkey",
"channel_type",
"warning_usage"
],
"properties": {
"funding_address": {
"type": "string",
"description": "The address to send funding to for the channel. DO NOT SEND COINS TO THIS ADDRESS YET."
},
"scriptpubkey": {
"type": "hex",
"description": "The raw scriptPubkey for the address"
},
"channel_type": {
"type": "object",
"description": "channel_type as negotiated with peer",
"added": "v24.02",
"additionalProperties": false,
"required": [
"bits",
"names"
],
"properties": {
"bits": {
"type": "array",
"added": "v24.02",
"description": "Each bit set in this channel_type",
"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`"
},
"warning_usage": {
"type": "string",
"description": "A warning not to prematurely broadcast the funding transaction (always present!)"
},
"mindepth": {
"type": "u32",
"description": "Number of confirmations before we consider the channel active."
}
}
}