I want to create an online widget where one can output their subaddresses without having to input their private-spend key and only use the other keys provided. Is there a javascript implementation of this?

2 Answers 2


Yes, you can use this Javascript NPM package to generate subaddresses: https://www.npmjs.com/package/subaddress


Subaddresses are created using the private view key of the base address, not the private spend key. See https://monerodocs.org/public-address/subaddress/#generating and https://github.com/monero-project/monero/pull/2056.

There is no way to create a subaddress without the base address private view key.

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.