mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
5e394ef53f
As reported on Discord, these are undocumented. And thus, um, hard to find! Reported-by: Aaron Barnard Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
45 lines
1.0 KiB
JSON
45 lines
1.0 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"invreq_id",
|
|
"single_use",
|
|
"active",
|
|
"bolt12",
|
|
"used"
|
|
],
|
|
"properties": {
|
|
"invreq_id": {
|
|
"type": "hash",
|
|
"description": "the SHA256 hash of all invoice_request fields less than 160"
|
|
},
|
|
"active": {
|
|
"type": "boolean",
|
|
"enum": [
|
|
true
|
|
],
|
|
"description": "whether the invoice_request is currently active"
|
|
},
|
|
"single_use": {
|
|
"type": "boolean",
|
|
"description": "whether the invoice_request will become inactive after we pay an invoice for it"
|
|
},
|
|
"bolt12": {
|
|
"type": "string",
|
|
"description": "the bolt12 string starting with lnr"
|
|
},
|
|
"used": {
|
|
"type": "boolean",
|
|
"enum": [
|
|
false
|
|
],
|
|
"description": "whether the invoice_request has already been used"
|
|
},
|
|
"label": {
|
|
"type": "string",
|
|
"description": "the label provided when creating the invoice_request"
|
|
}
|
|
}
|
|
}
|