GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
LIGHTNING-TXDISCARD(7) LIGHTNING-TXDISCARD(7)

lightning-txdiscard -- Abandon a transaction from txprepare, release inputs

txdiscard txid

The txdiscard RPC command releases inputs which were reserved for use of the txid from lightning-txprepare(7).

txid (txid): The transaction id, inputs should be unreseverd from.

On success, an object is returned, containing:

  • unsigned_tx (hex): The unsigned transaction.

  • txid (txid): The transaction id of unsigned_tx.

If there is no matching txid, an error is reported. Note that this may happen due to incorrect usage, such as txdiscard or txsend already being called for txid.

The following error codes may occur:

-1: An unknown txid.

Rusty Russell <rusty@rustcorp.com.au> is mainly responsible.

lightning-txprepare(7), lightning-txsend(7)

Main web site: https://github.com/ElementsProject/lightning

Example 1:

Request:

$ lightning-cli txdiscard "txidtxprep000100001000010000100001000010000100001000010000100001"

{

"id": "example:txdiscard#1",
"method": "txdiscard",
"params": [
"txidtxprep000100001000010000100001000010000100001000010000100001"
] }

Response:

{

"unsigned_tx": "0200000000000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006",
"txid": "txidtxprep000100001000010000100001000010000100001000010000100001" }

Example 2:

Request:

$ lightning-cli txdiscard -k "txid"="txidtxprep000300003000030000300003000030000300003000030000300003"

{

"id": "example:txdiscard#2",
"method": "txdiscard",
"params": {
"txid": "txidtxprep000300003000030000300003000030000300003000030000300003"
} }

Response:

{

"unsigned_tx": "0200000000000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008",
"txid": "txidtxprep000300003000030000300003000030000300003000030000300003" }
Core Lightning v25.02.2

Search for    or go to Top of page |  Section 7 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.