What are the transfer options to send XMR to an address using one of your subaddresses?

I just imported my private spend key via the cli. Now I have a bunch of untagged subaddresses with coins in them. Do I need to first tag them before I can use them? How do I tag them?


You don't need your addresses to be "tagged".

Quoting the help:

[wallet 456789]: help transfer
Command usage: 
  transfer [index=<N1>[,<N2>,...]] [<priority>] [<ring_size>] (<URI> | <address> <amount>) [<payment_id (obsolete)>]

Command description: 
  Transfer <amount> to <address>. If the parameter "index=<N1>[,<N2>,...]" is specified, the wallet uses outputs received by addresses of those indices. If omitted, the wallet randomly chooses address indices to be used. In any case, it tries its best not to combine outputs across multiple addresses. <priority> is the priority of the transaction. The higher the priority, the higher the transaction fee. Valid values in priority order (from lowest to highest) are: unimportant, normal, elevated, priority. If omitted, the default value (see the command "set priority") is used. <ring_size> is the number of inputs to include for untraceability. Multiple payments can be made at once by adding URI_2 or <address_2> <amount_2> etcetera (before the payment ID, if it's included)

So just transfer like:

transfer index=N destination amount

Replacing N with the index of the subaddress you wish to send from, destination with the destination address and amount with the amount you want to send.

Per user36303's comment, it's worth also highlighting that if you need to send from a subaddress that's in an account other then the first main account, you will first need to switch account using account switch <index>.

  • In case those subaddresses are in account > 0, you may want to also mention account switching. – user36303 Mar 18 at 13:51
  • Good catch, thanks. – jtgrassie Mar 18 at 14:11

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.