| Crates.io | dust_sweeper |
| lib.rs | dust_sweeper |
| version | 0.1.1 |
| created_at | 2025-02-23 02:43:59.381584+00 |
| updated_at | 2025-02-23 19:33:09.852069+00 |
| description | A Rust tool to identify and remove dust UTXOs in a privacy-preserving way. |
| homepage | https://github.com/IgnacioPorte/dust_sweeper |
| repository | https://github.com/IgnacioPorte/dust_sweeper |
| max_upload_size | |
| id | 1566015 |
| size | 29,139 |
A Rust-based tool to identify and remove dust UTXOs from a Bitcoin wallet in a privacy-preserving way.
Supports sweeping dust to a burn address or consolidating dust safely.
Install the CLI using cargo:
cargo install dust_cleaner
dust_sweeper_cli [OPTIONS] --rpc <RPC_URL> --user <USERNAME> --pass <PASSWORD>
Options:
-r, --rpc <RPC_URL> Bitcoin Core RPC URL (e.g., http://localhost:18443)
-u, --user <USERNAME> RPC username
-p, --pass <PASSWORD> RPC password
-t, --threshold <AMOUNT> Dust threshold in sats [default: 1000]
--dry-run Dry-run mode (only list dust UTXOs, no PSBT created)
--burn-address <ADDR> Burn address to send dust to [default: 1BitcoinEaterAddressDontSendf59kuE]
--fee <AMOUNT> Fixed fee in sats [default: 500]
-h, --help Print help information
Example output:
๐ Found 2 dust UTXOs:
๐ฐ UTXO: 800 sats
๐ฐ UTXO: 600 sats
Using fixed fee: 500 sats
๐ฅ PSBT #1 (Burning dust to 1BitcoinEaterAddressDontSendf59kuE):
cHNidP8BAH4CAAAAAr4S/3p+... [base64 PSBT data]
git clone https://github.com/IgnacioPorte/dust_sweeper
cd dust_sweeper
cargo build --release
target/release/dust_sweeper_cliThis project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
This tool is provided as-is. Always verify transactions before signing and broadcasting. Test thoroughly on regtest/testnet before using on mainnet.