Multisig balance sweeper for Dingocoin.
This can be used on other coins, just change the dingocoin-cli to the appropriate command.
This script helps you sweep (move) all funds from a Dingocoin multisig address to a destination address, subtracting a specified fee. It creates a raw transaction that you can then sign and broadcast.
- Dingocoin Core (
dingocoin-climust be in your PATH) - jq (for JSON parsing)
- bc (for arithmetic)
Make sure your Dingocoin Core node is fully synced and dingocoin-cli is configured to connect to it.
./multisig_sweep.sh <MULTISIG_ADDRESS> <DEST_ADDRESS> [FEE]<MULTISIG_ADDRESS>: The Dingocoin multisig address to sweep funds from.<DEST_ADDRESS>: The Dingocoin address to receive the swept funds.[FEE]: (Optional) Transaction fee in DINGO. Default is 10.
./multisig_sweep.sh DMultisigAddr DDestAddr 10This will create a raw transaction moving all funds (minus a 10 DINGO fee) from DMultisigAddr to DDestAddr.
The script will output the raw transaction hex. You must sign this transaction with the required keys and then broadcast it using dingocoin-cli.
- The script does not sign or broadcast the transaction. You must collect signatures and send the transaction yourself.
- Ensure you have the necessary permissions and private keys to sign the transaction.