1

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.

Thanks

  • 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/… – Mikko Ohtamaa Nov 12 '13 at 11:06
  • Nobody reads the frigging manual anymore… Java <-> bitcoind via RPC would just be one of many options. – e-sushi Mar 27 '15 at 23:09
3

You will want to look into this implementation of bitcoin.

https://bitcoinj.github.io/

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 Nov 13 '13 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 Nov 13 '13 at 9:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.