Hi I want to generate a unique deposit address for my Monero wallet. Please let me know if I can do this using javascript, without unlocking my wallet, just using the wallet or public key, or any other method.

1 Answer 1


To create a subaddress, you need the wallet private keys. Assuming you have these, you can create them in javascript using this package, as an example.

You cannot do this having only the public key, you need both the private view key and public spend key.

  • Secret view key only.
    – user36303
    May 22, 2019 at 22:11
  • The linked javascript module requires both spend and view keys. That is, public spend key and secret view key.
    – jtgrassie
    May 22, 2019 at 22:19
  • OK. Then you might want to add a comment that this requirement is only for this particular software.
    – user36303
    May 22, 2019 at 22:48
  • The point is (which I have reworded in the answer), is you need both the public spend key and private view key. You cannot create subaddreses (using anything) without both of these.
    – jtgrassie
    May 22, 2019 at 23:37
  • I tried but its not giving me unique address , always same May 24, 2019 at 7:06

Your Answer

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

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