mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-12-28 01:24:42 +01:00
cd7e784d6f
This is consistent with our output changes, and increases consistency. It also keeps future sanity checks happy, that we only use JSON msat helpers with '_msat' fields. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Changed: JSON-RPC: `invoice`, `sendonion`, `sendpay`, `pay`, `keysend`, `fetchinvoice`, `sendinvoice`: `msatoshi` argument is now called `amount_msat` to match other fields. Changelog-Deprecated: JSON-RPC: `invoice`, `sendonion`, `sendpay`, `pay`, `keysend`, `fetchinvoice`, `sendinvoice` `msatoshi` (use `amount_msat`)
73 lines
1.3 KiB
JSON
73 lines
1.3 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"amount_msat",
|
|
"label",
|
|
"description"
|
|
],
|
|
"properties": {
|
|
"amount_msat": {
|
|
"type": "msat_or_any",
|
|
"description": ""
|
|
},
|
|
"description": {
|
|
"type": "string",
|
|
"description": ""
|
|
},
|
|
"label": {
|
|
"oneOf": [
|
|
{
|
|
"type": "string",
|
|
"description": ""
|
|
},
|
|
{
|
|
"type": "integer",
|
|
"description": ""
|
|
}
|
|
]
|
|
},
|
|
"expiry": {
|
|
"type": "u64",
|
|
"description": ""
|
|
},
|
|
"fallbacks": {
|
|
"type": "array",
|
|
"description": "",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"preimage": {
|
|
"type": "hex",
|
|
"description": ""
|
|
},
|
|
"exposeprivatechannels": {
|
|
"oneOf": [
|
|
{
|
|
"type": "boolean",
|
|
"description": ""
|
|
},
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "short_channel_id"
|
|
}
|
|
},
|
|
{
|
|
"type": "short_channel_id"
|
|
}
|
|
]
|
|
},
|
|
"cltv": {
|
|
"type": "u32",
|
|
"description": ""
|
|
},
|
|
"deschashonly": {
|
|
"type": "boolean",
|
|
"description": ""
|
|
}
|
|
}
|
|
}
|