mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-12-28 17:44:47 +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`)
57 lines
915 B
JSON
57 lines
915 B
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bolt11"
|
|
],
|
|
"properties": {
|
|
"bolt11": {
|
|
"type": "string"
|
|
},
|
|
"amount_msat": {
|
|
"type": "msat"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"riskfactor": {
|
|
"type": "number"
|
|
},
|
|
"maxfeepercent": {
|
|
"type": "number"
|
|
},
|
|
"retry_for": {
|
|
"type": "u16"
|
|
},
|
|
"maxdelay": {
|
|
"type": "u16"
|
|
},
|
|
"exemptfee": {
|
|
"type": "msat"
|
|
},
|
|
"localofferid": {
|
|
"type": "hex"
|
|
},
|
|
"exclude": {
|
|
"type": "array",
|
|
"items": {
|
|
"oneOf": [
|
|
{
|
|
"type": "short_channel_id_dir"
|
|
},
|
|
{
|
|
"type": "pubkey"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"maxfee": {
|
|
"type": "msat"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|