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
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.
-
-
The linked javascript module requires both spend and view keys. That is, public spend key and secret view key. Commented May 22, 2019 at 22:19
-
OK. Then you might want to add a comment that this requirement is only for this particular software. Commented 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. Commented May 22, 2019 at 23:37
-
I tried but its not giving me unique address , always same Commented May 24, 2019 at 7:06