I am working on a platform where users can register and can have wallets with multiple addresses (one address for each coin/network). I found something in Binance APIs where you're able to create sub-accounts and for each subaccount, you can set the coin and so for each one, you can get a unique address. I don't know if this is the best practice to generate new addresses for the users

  • why do you need binance? Commented Apr 29, 2022 at 14:46
  • @user253751 Not necessarily Binance, I am new in crypto and only have some experience in binance APIs, I can use any library to create the addresses for each user after they register in the platform so they must be able to receive crypto to that addresses, do you have any suggestions please? Commented Apr 30, 2022 at 9:23
  • Look up how e.g. hierarchical deterministic wallets work. In very simple terms, they generate a series of addresses based on the same private key. But that's only useful if you want to only have one private key (and e.g. generate more public addresses without knowing the private keys). If you don't have special requirements then you can just generate new addresses the same way you generated the first one. Commented May 2, 2022 at 11:54
  • @user253751 Yes that's exactly what I need, the idea is that each registered user must have a wallet to use it for deposit and withdraw bitcoin, ethereum, litecoin,... so for each coin he must have an address that's generated after success registration on the fly. Can you please help about the best way to do this Commented May 5, 2022 at 9:08
  • how did you generate the first address? Commented May 5, 2022 at 9:09

1 Answer 1


It is not. It will be safer, easier, and reliable, to use a library designed for address creation.


What is a Sub-Account? Sub-account allows you to trade through multiple accounts. You can use it to clearly divide responsibilities and manage transactions ...

It is not the intended design of Binance for your use case.

  • Thank you @Gerschel, can you please share some examples for libraries used in address creation? Commented Apr 30, 2022 at 9:19
  • I have not tried out any libraries. I had written my own; because I didn't know which would be "better" or "safer"; so I wanted to understand the process. Security is a big issue, who's managing the server security, who has access to do so, backups. This topic is just beyond my scope at the moment.
    – Gerschel
    Commented May 1, 2022 at 12:47
  • @MarwanAswad I can share some knowledge with you on how to do it, make the bips less dense. Do go and continue with your homework, it's going to be a bit, I need to write it up between work. What's your programming language preference?
    – Gerschel
    Commented May 1, 2022 at 13:03
  • it's highly appreciated if you can guide me with the needed steps, my project is written in PHP, and I think I can use any programming language to handle the addresses creation and call the needed web services from my PHP project, what do you think? Commented May 5, 2022 at 7:05

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.