-
Notifications
You must be signed in to change notification settings - Fork 913
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
delpay: introduced a new rpc method to delete a payment by hash
Changelog-Added: JSON-RPC: delpay a new method to delete the payment completed or failed.
- Loading branch information
1 parent
094eac4
commit bfb4282
Showing
6 changed files
with
271 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
lightning-delpay -- Command for removing a completed payment | ||
============================================================ | ||
|
||
SYNOPSIS | ||
-------- | ||
|
||
**delpay** *payment_hash* \[status\] (is not specify the status is complete) | ||
|
||
DESCRIPTION | ||
----------- | ||
|
||
The **delpay** RPC command removes a payment as given in **listsendpays** or **listpays** with a complete or failed | ||
status. However, the command doesn't permit to remove the pending payment. | ||
|
||
EXAMPLE JSON REQUEST | ||
------------ | ||
```json | ||
{ | ||
"id": 82, | ||
"method": "delpay", | ||
"params": { | ||
"payment_hash": "4fa2f1b001067ec06d7f95b8695b8acd9ef04c1b4d1110e3b94e1fa0687bb1e0", | ||
"status": "complete" | ||
} | ||
} | ||
``` | ||
|
||
RETURN VALUE | ||
------------ | ||
|
||
On success, the command will return a payment object, such as the listpays. | ||
|
||
On failure, an error is returned and any payment is deleted. If the lightning process fails before responding, the | ||
caller should use lightning-listsentpays(7) or lightning-listpays(7) to query whether this payment was deleted or not. | ||
|
||
The following error codes may occur: | ||
|
||
- -32602: Some parameter missed or some parameter is malformed; | ||
- -1: Payment with wrong status | ||
- -1: Payment not found. | ||
|
||
- | ||
AUTHOR | ||
------ | ||
|
||
Vincenzo Palazzo <<vincenzopalazzodev@gmail.com>> is mainly responsible. | ||
|
||
SEE ALSO | ||
-------- | ||
|
||
lightning-listpays(7), lightning-listsendpays(7), | ||
lightning-pay(7), lightning-paystatus(7), | ||
~~lightning-keysend(7)~~ | ||
|
||
RESOURCES | ||
--------- | ||
|
||
Main web site: <https://github.com/ElementsProject/lightning> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters