|
November 14, 2016, 07:55:02 AM |
|
Generally you would simply credit and debit the users' respective accounts in your database without actually moving any Bitcoin. In other words, a user's balance is increased when he deposits, increased and decreased as he wins and loses games and finally decreased when he withdraws. The only time you need to transfer any Bitcoins is during that last step, when a user withdraws.
An unrelated consideration is whether you should use a third party wallet provider at all. Aside from the obvious trust issue your service will be–at least partially–unavailable whenever your wallet provider is experiencing problems. In the case of Blockchain.info specifically this seems to happen quite frequently.
|