2

I'd like to use a specified address using the monero-wallet-cli and not a new one it generates. How could I accomplish this?

1 Answer 1

3

The monero-wallet-cli operates on wallets, which contain private and public keys, which have addresses. Thus, to use the monero-wallet-cli with a different address (not generated by your wallet), you have to generate a new wallet using the keys for that address or from the seed words of the wallet that first created the address.

See monero-wallet-cli --help:

...
  --generate-from-view-key arg          Generate incoming-only wallet from view
                                        key
  --generate-from-spend-key arg         Generate deterministic wallet from 
                                        spend key
  --generate-from-keys arg              Generate wallet from private keys
                                        wallet keys
  --generate-from-json arg              Generate wallet from JSON format file
... or...
  --restore-deterministic-wallet        Recover wallet using Electrum-style 
                                        mnemonic seed

Once you've created a wallet for your address, you can then use it.

3
  • What about if I generate the new wallet and I just add my address instead of the one it generated? Like the GUI one where you have the possibility to change address if you want. How to do that using CLI? Aug 26, 2021 at 16:02
  • You cannot add an address from another wallet. Even in the GUI. A wallet can have multiple accounts and address, which you can switch between, you just can't add an address created by a different wallet.
    – jtgrassie
    Aug 26, 2021 at 20:13
  • Oh, i thought i could since i have seen that in settings but tbh I haven't tried Aug 27, 2021 at 13:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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