"title":"Abandon a transaction from txprepare, release inputs",
"description":[
"The **txdiscard** RPC command releases inputs which were reserved for use of the *txid* from lightning-txprepare(7)."
],
"request":{
"required":[
"txid"
],
"properties":{
"txid":{
"type":"txid",
"description":[
"The transaction id, inputs should be unreseverd from."
]
}
}
},
"response":{
"required":[
"unsigned_tx",
"txid"
],
"properties":{
"unsigned_tx":{
"type":"hex",
"description":[
"The unsigned transaction."
]
},
"txid":{
"type":"txid",
"description":[
"The transaction id of *unsigned_tx*."
]
}
},
"post_return_value_notes":[
"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*."