mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
02d7454226
We no longer use offers for "I want to send you money", but we'll use invoice_requests directly. Create a new table for them, and associated functions. The "localofferid" for "pay" and "sendpay" is now "localinvreqid". This is an experimental-only option, so document the change under experimental only. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-EXPERIMENTAL: JSON-RPC: `pay` and `sendpay` `localofferid` is now `localinvreqid`.
57 lines
916 B
JSON
57 lines
916 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"
|
|
},
|
|
"localinvreqid": {
|
|
"type": "hex"
|
|
},
|
|
"exclude": {
|
|
"type": "array",
|
|
"items": {
|
|
"oneOf": [
|
|
{
|
|
"type": "short_channel_id_dir"
|
|
},
|
|
{
|
|
"type": "pubkey"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"maxfee": {
|
|
"type": "msat"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|