I see in the wallet RPC documentation that the transfer command can take the account_index and subaddr_indices arguments. Are these optional? What happens if these are not specified? Can the transfer command send Moneroj from multiple accounts and/or subaddresses on the same wallet?


To my understanding, if not specified, account_index will default to 0, while subaddr_indices will allow the wallet to use outputs from specified sub-address indexes as inputs. If you specify multiple subaddr_indices, you restrain the wallet to only pick from those. But it will depend on the outputs available and the amount you want to transfer. It could pick one from one subaddresses, or more from the same or from other subaddresses. However, you cannot send from multiple accounts at the same time.

  • You are correct. They are both optional.
    – jtgrassie
    Sep 8 '18 at 12:59
  • Thank you both. I asked because the API docs do not indicate these arguments as optional, while other arguments are indeed marked optional.
    – alexg
    Sep 8 '18 at 13:20
  • The upcoming refresh of this doc will indicate it's optional. Sep 9 '18 at 13:03

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.