mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-12-28 01:24:42 +01:00
b45b731c55
Types are fixed, in particular: * rename "OutputDesc" to more consistent "outputdesc". * rename "utxo" to more consistent "outpoint". * it's "boolean" not "bool". * "number" means int or float, usually it should be u32. Specific commands: * close `id` can be by channel id, scid. * close `feerange` is a feerate type. * datastore/deldatastore/listdatastore `key` can be singleton. * delexpiredinvoice: `maxexpirytime` is not required, is a u64. * invoice/delinvoice/listinvoice `label` can be an integer * fundpsbt: many fields are u32 not number (JSON for int or float). * invoice: `msatoshi` can be "any". * invoice: `expiry` has a type (now must be numeric). * invoice: `exposeprivatechannels` can be bool or array of scids. * invoice: `deschashonly` added * keysend: there's no "float" type, use "number" or "u32" etc. * keysend: `routehints` is a valid arg, as is `extratlvs` (EXPERIMENTAL_FEATURES) * listdatastore: `key` is not required. * newaddr: `addresstype` can be "all" * pay: `exemptfee` is "msat", new fields `locaofferid` and `exclude` * sendonion: was mis-formatted, missed `localofferid` and `groupid` fields. * sendpay: add `localofferid` and `groupid` params. * signpsbt: add `signonly` param. * txprepare "outptus" typo. * waitsendpay: add `groupid` and fix `partid` type. * withdraw: `destination` is a bitcoin address, not a pubkey. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
42 lines
794 B
JSON
42 lines
794 B
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"description": "peer id, channel id or short_channel_id"
|
|
},
|
|
"unilateraltimeout": {
|
|
"type": "u32",
|
|
"description": ""
|
|
},
|
|
"destination": {
|
|
"type": "string",
|
|
"description": ""
|
|
},
|
|
"fee_negotiation_step": {
|
|
"type": "string",
|
|
"description": ""
|
|
},
|
|
"wrong_funding": {
|
|
"type": "txid",
|
|
"description": ""
|
|
},
|
|
"force_lease_closed": {
|
|
"type": "boolean",
|
|
"description": ""
|
|
},
|
|
"feerange": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "feerate"
|
|
},
|
|
"description": ""
|
|
}
|
|
}
|
|
}
|