mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-01 03:24: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>
65 lines
1.0 KiB
JSON
65 lines
1.0 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"onion",
|
|
"first_hop",
|
|
"payment_hash"
|
|
],
|
|
"properties": {
|
|
"onion": {
|
|
"type": "hex"
|
|
},
|
|
"first_hop": {
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"amount_msat",
|
|
"delay"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"type": "pubkey"
|
|
},
|
|
"amount_msat": {
|
|
"type": "msat"
|
|
},
|
|
"delay": {
|
|
"type": "u16"
|
|
}
|
|
}
|
|
},
|
|
"payment_hash": {
|
|
"type": "hex"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"shared_secrets": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "hex"
|
|
}
|
|
},
|
|
"partid": {
|
|
"type": "u16"
|
|
},
|
|
"bolt11": {
|
|
"type": "string"
|
|
},
|
|
"msatoshi": {
|
|
"type": "msat"
|
|
},
|
|
"destination": {
|
|
"type": "pubkey"
|
|
},
|
|
"localofferid": {
|
|
"type": "hash"
|
|
},
|
|
"groupid": {
|
|
"type": "u64"
|
|
}
|
|
}
|
|
}
|