Skip to content

Instantly share code, notes, and snippets.

Purpose

Removing dust UTXOs from your wallet using electrum to prevent accidental spending. This example creates an OP_RETURN transaction with the entire dust amount being used as the transaction fee. The transaction fee will be ~3 to 5 sat/vB and may take some time to be confirmed. To prevent linking between multiple dust transactions, wait at least until the transaction is confirmed before submitting another.

Electrum

Coins Tab

Select one dust UTXO and right click Spend

Send Tab

Pay to: OP_RETURN ########,0
######## can be up to 64 hex characters