The transaction-abandon
command in Mintlayer allows users to mark an unconfirmed transaction as abandoned in the wallet database. This action makes the consumed inputs available for reuse, although it does not guarantee that the network will also disregard the transaction. It's primarily used for transactions that are either not confirmed or are invalid.
Note: While this command marks the transaction as abandoned in your wallet, it does not remove the transaction from the blockchain or mempool. Other network participants may still consider it valid until it is either confirmed or invalidated by the network.
transaction-abandon <TRANSACTION_ID>
<TRANSACTION_ID>
: The ID of the transaction you wish to abandon, provided as a hex-encoded string.-h, --help
: Displays help information about the transaction-abandon
command.Abandoning a Transaction:
To mark a specific transaction as abandoned, use its transaction ID as follows:
transaction-abandon c6aebb7caaa20a4962cacf511526c69d145dcdd7126e30dc903fec6d8e53bab4
If successful, the output will confirm that the transaction has been marked as abandoned:
The transaction was marked as abandoned successfully