def sweep(crypto, private_key, to_address, fee=None, password=None, **modes):
from moneywagon.tx import Transaction<EOL>tx = Transaction(crypto, verbose=modes.get('<STR_LIT>', False))<EOL>tx.add_inputs(private_key=private_key, password=password, **modes)<EOL>tx.change_address = to_address<EOL>tx.fee(fee)<EOL>return tx.push()<EOL>
Move all funds by private key to another address.