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?