lnrpc: add the deletecanceledinvoice rpc call

This commit is contained in:
MPins committed 2025-07-25 21:09:18 -03:00
1 parent 6f09d9653f
commit 0146e374fd
7 files changed
+1964 -1616

No files matched your search

+39
View File
@@ -1874,6 +1874,36 @@
"Lightning"
]
},
"delete": {
"summary": "lncli: `deletecanceledinvoice`\nDeleteCanceledInvoice removes a canceled invoice from the database. If the\ninvoice is not in the canceled state, an error will be returned.",
"operationId": "Lightning_DeleteCanceledInvoice",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/lnrpcDelCanceledInvoiceResp"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "invoice_hash",
"description": "Invoice payment hash to delete.",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"Lightning"
]
},
"post": {
"summary": "lncli: `addinvoice`\nAddInvoice attempts to add a new invoice to the invoice database. Any\nduplicated invoices are rejected, therefore all invoices *must* have a\nunique payment preimage.",
"operationId": "Lightning_AddInvoice",
@@ -4857,6 +4887,15 @@
}
}
},
"lnrpcDelCanceledInvoiceResp": {
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "The status of the delete operation."
}
}
},
"lnrpcDeleteAllPaymentsResponse": {
"type": "object",
"properties": {