mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
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.
47 lines
836 B
JSON
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"
|
|
}
|
|
}
|
|
}
|
|
}
|