You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to create a unique sub address per transaction for my web app this code returns same sub address until its used
asyncfunctioncreateSubaddress(){// Note: I have tried both viewOnly and full wallet!letviewOnlyWallet=awaitopenMoneroWallet();awaitviewOnlyWallet.sync();return(awaitviewOnlyWallet.createSubaddress(0)).getAddress();}functionopenMoneroWallet(){returnmoneroTs.openWalletFull({path: getWalletPath(),password: "****",networkType: moneroTs.MoneroNetworkType.STAGENET,server: {uri: "****"}})}
In Monero GUI wallet going to receive and clicking create new address creates a new one every time you click it.
I have looked through docs and code of the library and also Monero docs but I dont see why I cant create a sub address.
Am I doing something wrong or is this a bug with the library?
The text was updated successfully, but these errors were encountered:
Currently you're opening the wallet and creating a new subaddress in the same function, but I don't see the wallet being saved before re-opening the wallet.
You'll need to save the wallet in order for the newly created subaddresses to exist when the wallet is re-opened.
I want to create a unique sub address per transaction for my web app this code returns same sub address until its used
In Monero GUI wallet going to receive and clicking create new address creates a new one every time you click it.
I have looked through docs and code of the library and also Monero docs but I dont see why I cant create a sub address.
Am I doing something wrong or is this a bug with the library?
The text was updated successfully, but these errors were encountered: