mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 02:27:51 +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`)
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": "hash"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"shared_secrets": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "secret"
|
|
}
|
|
},
|
|
"partid": {
|
|
"type": "u16"
|
|
},
|
|
"bolt11": {
|
|
"type": "string"
|
|
},
|
|
"amount_msat": {
|
|
"type": "msat"
|
|
},
|
|
"destination": {
|
|
"type": "pubkey"
|
|
},
|
|
"localofferid": {
|
|
"type": "hash"
|
|
},
|
|
"groupid": {
|
|
"type": "u64"
|
|
}
|
|
}
|
|
}
|