core-lightning/doc/schemas/sendonion.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

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"
},
"localinvreqid": {
"type": "hash"
},
"groupid": {
"type": "u64"
}
}
}