I want run only one string in command line. And that after executing this command, the wallet opens, syncs, and funds are sent.

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 May 17 '20 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 ...
    – jtgrassie
    May 17 '20 at 18:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.