I was wondering if it's possible in my app where i have registered users, to provide a new wallet address for them to transfer funds while making sure that address is unique to the user i gave the address to.

That way i think i could relate a transfer to that address to that specific user while listening to new transactions in the app wallet.

Is there any chance of other user receiveing the same address in the future?

I'm using the generate_address() method in wallet.rs binding for python.

2 Answers 2


I think the generate_address() function will generate a new address everytime is called. You could also evaluate creating a unique account for each user depending on your use case.

  • The problem with creating a unique account is that is receive this error message: "can't create accounts when the latest account doesn't have message history and balance". Jun 9, 2021 at 14:28

have a look at the exchange guide, as it can be source of inspiration for such an implementation.

  • An answer on StackExchange sites should not only include a link to an external reference. Links tend to go down after a few years and the content becomes useless... Having an additional link as source or for more details is fine.
    – mihi
    May 25, 2021 at 19:39
  • Thanks for the heads up @mihi May 25, 2021 at 19:46

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.