Author

Topic: Integrating Bitcoin to the php browser game (Read 917 times)

legendary
Activity: 1008
Merit: 1000
GigTricks.io | A CRYPTO ECOSYSTEM FOR ON-DEMAND EC
December 11, 2013, 05:52:52 PM
#6
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.
newbie
Activity: 56
Merit: 0
December 11, 2013, 05:37:05 PM
#5
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...
hero member
Activity: 546
Merit: 501
December 11, 2013, 05:36:02 PM
#4
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.
legendary
Activity: 1008
Merit: 1000
GigTricks.io | A CRYPTO ECOSYSTEM FOR ON-DEMAND EC
December 11, 2013, 05:01:49 PM
#3
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.
hero member
Activity: 546
Merit: 501
December 11, 2013, 04:53:39 PM
#2
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.
legendary
Activity: 1008
Merit: 1000
GigTricks.io | A CRYPTO ECOSYSTEM FOR ON-DEMAND EC
December 11, 2013, 04:42:45 PM
#1
..
Jump to: