mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-12-29 10:04:41 +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>
72 lines
1.3 KiB
JSON
72 lines
1.3 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"destination",
|
|
"msatoshi"
|
|
],
|
|
"properties": {
|
|
"destination": {
|
|
"type": "pubkey"
|
|
},
|
|
"msatoshi": {
|
|
"type": "msat"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"maxfeepercent": {
|
|
"type": "number"
|
|
},
|
|
"retry_for": {
|
|
"type": "u32"
|
|
},
|
|
"maxdelay": {
|
|
"type": "u32"
|
|
},
|
|
"exemptfee": {
|
|
"type": "msat"
|
|
},
|
|
"routehints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"scid",
|
|
"feebase",
|
|
"feeprop",
|
|
"expirydelta"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"type": "pubkey"
|
|
},
|
|
"scid": {
|
|
"type": "short_channel_id"
|
|
},
|
|
"feebase": {
|
|
"type": "msat"
|
|
},
|
|
"feeprop": {
|
|
"type": "u32"
|
|
},
|
|
"expirydelta": {
|
|
"type": "u16"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"extratlvs": {
|
|
"type": "object",
|
|
"additionalProperties": true,
|
|
"required": []
|
|
}
|
|
}
|
|
}
|