2022-04-01 06:12:45 +02:00
|
|
|
{
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
|
|
"type": "object",
|
2022-04-01 06:12:45 +02:00
|
|
|
"additionalProperties": false,
|
2022-04-01 06:12:45 +02:00
|
|
|
"required": [
|
|
|
|
"destination",
|
lightningd: change `msatoshi` args to `amount_msat`.
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`)
2022-06-19 09:20:11 +02:00
|
|
|
"amount_msat"
|
2022-04-01 06:12:45 +02:00
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"destination": {
|
|
|
|
"type": "pubkey"
|
|
|
|
},
|
lightningd: change `msatoshi` args to `amount_msat`.
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`)
2022-06-19 09:20:11 +02:00
|
|
|
"amount_msat": {
|
2022-04-01 06:12:45 +02:00
|
|
|
"type": "msat"
|
|
|
|
},
|
|
|
|
"label": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"maxfeepercent": {
|
2022-04-01 06:13:34 +02:00
|
|
|
"type": "number"
|
2022-04-01 06:12:45 +02:00
|
|
|
},
|
|
|
|
"retry_for": {
|
2022-04-01 06:13:34 +02:00
|
|
|
"type": "u32"
|
2022-04-01 06:12:45 +02:00
|
|
|
},
|
|
|
|
"maxdelay": {
|
2022-04-01 06:13:34 +02:00
|
|
|
"type": "u32"
|
2022-04-01 06:12:45 +02:00
|
|
|
},
|
|
|
|
"exemptfee": {
|
|
|
|
"type": "msat"
|
2022-04-01 06:13:34 +02:00
|
|
|
},
|
|
|
|
"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": []
|
2022-04-01 06:12:45 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|