Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: RoooooR on December 11, 2013, 09:42:45 PM



Title: Integrating Bitcoin to the php browser game
Post by: RoooooR on December 11, 2013, 09:42:45 PM
..


Title: Re: Integrating Bitcoin to the php browser game
Post by: tutkarz on December 11, 2013, 09:53:39 PM
you can use blockchain.info api, its simpler to set up and use but later you will have to implement bitcoind since you will want to have full control and not worry about blockchain.info being up or not. Maybe there are others who have wallet api too, I don't know since I was looking for it like half year ago. A lot probably changed since then.


Title: Re: Integrating Bitcoin to the php browser game
Post by: RoooooR on December 11, 2013, 10:01:49 PM
Thanks for reply.. Look like I'll use Blockchain API.
But how about this very primitive idea? :
Create hundreds of wallet on my windows 8 Qt (I don't trust any hosting company.. I have a bad experience)
Match them with users(every user has one of this wallets) .
getbalance from his wallet->save database deposits/wins/loses
...
May be I'm missing something.


Title: Re: Integrating Bitcoin to the php browser game
Post by: tutkarz on December 11, 2013, 10:36:02 PM
don't complicate things. Just use blockchain api, create fresh bitcoin account upon user register, when you detect they send money store amount in database and send bitcoins to cold wallet you created outside of blockchain.info without storing its private key anywhere in the web. Of course you will have to send bitcoins also to users but I don't know if you are planning to have second server who will manage payments so game server will have no knowledge of it and if it would be hacked there will be no way to access cold wallet.


Title: Re: Integrating Bitcoin to the php browser game
Post by: coreli on December 11, 2013, 10:37:05 PM
Thanks for reply.. Look like I'll use Blockchain API.
But how about this very primitive idea? :
Create hundreds of wallet on my windows 8 Qt (I don't trust any hosting company.. I have a bad experience)
Match them with users(every user has one of this wallets) .
getbalance from his wallet->save database deposits/wins/loses
...
May be I'm missing something.

Your not missing anything apart from how you would store that sensitive data. There is of course the possibility of running out of addresses, I guess it comes down to how many you generate...


Title: Re: Integrating Bitcoin to the php browser game
Post by: RoooooR on December 11, 2013, 10:52:52 PM
Thanks for reply.. Look like I'll use Blockchain API.
But how about this very primitive idea? :
Create hundreds of wallet on my windows 8 Qt (I don't trust any hosting company.. I have a bad experience)
Match them with users(every user has one of this wallets) .
getbalance from his wallet->save database deposits/wins/loses
...
May be I'm missing something.

Your not missing anything apart from how you would store that sensitive data. There is of course the possibility of running out of addresses, I guess it comes down to how many you generate...

Hundreds maybe thousands of wallet.

Anyway, thanks for your kindly replies @tutkarz @coreli.
I'm going to start project.
Thanks a lot again.