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": [
|
|
|
|
"route",
|
|
|
|
"payment_hash"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"route": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"id",
|
|
|
|
"delay",
|
|
|
|
"channel"
|
|
|
|
],
|
|
|
|
"properties": {
|
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"
|
|
|
|
},
|
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
|
|
|
"msatoshi": {
|
|
|
|
"deprecated": "true"
|
|
|
|
},
|
2022-04-01 06:12:45 +02:00
|
|
|
"id": {
|
|
|
|
"type": "pubkey"
|
|
|
|
},
|
|
|
|
"delay": {
|
|
|
|
"type": "u16"
|
|
|
|
},
|
|
|
|
"channel": {
|
|
|
|
"type": "short_channel_id"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"payment_hash": {
|
2022-04-01 06:13:34 +02:00
|
|
|
"type": "hash"
|
2022-04-01 06:12:45 +02:00
|
|
|
},
|
|
|
|
"label": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
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"
|
|
|
|
},
|
|
|
|
"bolt11": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"payment_secret": {
|
2022-04-01 06:13:34 +02:00
|
|
|
"type": "secret"
|
2022-04-01 06:12:45 +02:00
|
|
|
},
|
|
|
|
"partid": {
|
|
|
|
"type": "u16"
|
2022-04-01 06:13:34 +02:00
|
|
|
},
|
|
|
|
"localofferid": {
|
|
|
|
"type": "hex"
|
|
|
|
},
|
|
|
|
"groupid": {
|
|
|
|
"type": "u64"
|
2022-04-01 06:12:45 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|