I want run only one string in command line. And that after executing this command, the wallet opens, syncs, and funds are sent.
1 Answer
monero-wallet-cli --wallet-file MyWallet --password MyPass sweep_all address
-
In this case, it does not work if the wallet does not have an unlocked balance. It need to sync it first, and then your command will work. Without sync your command not work. Screenshot: ibb.co/bb73yGM Commented May 17, 2020 at 10:22
-
Well obviously I assumed your wallet had some existing balance. If you need to sync as well, just chain two commands.
monero-wallet-cli ... refresh; monero-wallet-cli ... sweep_all ...
Commented May 17, 2020 at 18:46