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