I am working on a PokerGame where I need to implement BitCoins. For each registered user, I need a unique bitcoin address generated, toward which they can make payments and I make them show it when they access their game account. How can implement this? I am using Java.


  • Does not help you a lot as it is not Java specific, but here you can look my (Python based) django_bitcoin tutorial for inspiration: opensourcehacker.com/2013/10/16/… Commented Nov 12, 2013 at 11:06
  • Nobody reads the frigging manual anymore… Java <-> bitcoind via RPC would just be one of many options.
    – e-sushi
    Commented Mar 27, 2015 at 23:09

1 Answer 1


You will want to look into this implementation of bitcoin.


The documentation will provide all required information for generating bitcoin addresses.

It is generally unwise to reuse addresses, also very expensive to be constantly moving small amounts on the main chain. You may want to consider other implementation options rather than one address per user.

  • I see there are options to generate addresses using CoinBase API: coinbase.com/api/doc/1.0/accounts/generate_receive_address.html If It is not a good implementation to create addresses per user, can you suggest what other implementations are possible here? I am a bit new to this...
    – RahuJoshi
    Commented Nov 13, 2013 at 7:31
  • 2
    For better security, make a new address for each transaction, keep all addresses in a separate table and linked by an ID. When sending out, group transactions together in custom sends to reduce fees. When a player wins or looses a hand use an internal record, don't move coins unless they are leaving your system. keep 90% of funds offline. That should get you started.
    – MaxSan
    Commented Nov 13, 2013 at 9: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.