core-lightning/doc/schemas/openchannel_init.request.json
Rusty Russell e749aebbff fundchannel_start / openchannel_init: add a channel_type parameter to force channel type.
And add request schemas for openchannel_init and fundchannel_start.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Added: JSON-RPC: `fundchannel_start` and `openchannel_init` now take an optional `channel_type` parameter.
2024-01-29 13:40:34 +10:30

47 lines
836 B
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"id",
"amount",
"initialpsbt"
],
"properties": {
"id": {
"type": "pubkey"
},
"amount": {
"type": "msat"
},
"initialpsbt": {
"type": "string"
},
"commitment_feerate": {
"type": "feerate"
},
"funding_feerate": {
"type": "feerate"
},
"announce": {
"type": "boolean"
},
"close_to": {
"type": "hex"
},
"request_amt": {
"type": "msat"
},
"compact_lease": {
"type": "hex"
},
"channel_type": {
"type": "array",
"description": "Each bit set in this channel_type",
"items": {
"type": "u32",
"description": "Bit number"
}
}
}
}