<p>I'd advise caution, it is quite difficult to secure web wallets. What you are asking is pretty basic, when a new user registers you call your server (ie bitcoind) to create a new address, then assign that address to that userid in your database. Withdrawal would just be a call to send transaction. There's no script that will do this for you, it needs to be done from scratch.  </p>

CC BY-SA 3.0
2017-08-18T05:25:47.300Z
2017-08-18T05:25:47.300Z
m1xolyd1an
<p>I'm trying to create multiplayer game using BTC to make bets. I have server and I am using PHP to let users create an account. How would I write a script where when a new user creates an account the server also makes a new wallet for them where they can deposit, withdraw and use that wallet's balance to play games using BTC.</p>

<bitcoin-core><client><php>
Online bitcoin game
cleanOSuser
# Online bitcoin game

(Asked by: username_0 on 2017-08-17)

I'm trying to create multiplayer game using BTC to make bets. I have server and I am using PHP to let users create an account. How would I write a script where when a new user creates an account the server also makes a new wallet for them where they can deposit, withdraw and use that wallet's balance to play games using BTC.

**Tags:** bitcoin-core, client, php


---

## 1 answers

### Answer by username_1 on 2017-08-18. Score: 1

I'd advise caution, it is quite difficult to secure web wallets. What you are asking is pretty basic, when a new user registers you call your server (ie bitcoind) to create a new address, then assign that address to that userid in your database. Withdrawal would just be a call to send transaction. There's no script that will do this for you, it needs to be done from scratch.


---

