mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 06:41:44 +01:00
51 lines
1.4 KiB
JSON
51 lines
1.4 KiB
JSON
|
{
|
||
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||
|
"type": "object",
|
||
|
"additionalProperties": false,
|
||
|
"required": [
|
||
|
"invoicerequests"
|
||
|
],
|
||
|
"properties": {
|
||
|
"invoicerequests": {
|
||
|
"type": "array",
|
||
|
"items": {
|
||
|
"type": "object",
|
||
|
"additionalProperties": true,
|
||
|
"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",
|
||
|
"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",
|
||
|
"description": "whether the invoice_request has already been used"
|
||
|
},
|
||
|
"label": {
|
||
|
"type": "string",
|
||
|
"description": "the label provided when creating the invoice_request"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|