core-lightning/doc/schemas/pay.request.json
Rusty Russell 02d7454226 db: add invoicerequests table.
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`.
2022-11-09 15:08:03 +01:00

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"
}
}
}