<p>You need to create a key pair with bitcoin-cli. Then you can display the public key as an address for users to deposit to. Specifically, use the commands getnewaddress and dumpprivkey. If you set up a unique key pair for each user, then you can easily see how much each user has deposited.</p>

<p>Here are some examples:
<a href="https://bitcoin.org/en/developer-examples#simple-spending" rel="nofollow">https://bitcoin.org/en/developer-examples#simple-spending</a></p>

CC BY-SA 3.0
2015-11-09T12:14:34.407Z
Please read the edit
Yash Lotan
CC BY-SA 3.0
2015-11-09T17:47:18.320Z
The website knows which user paid, because they know to which user they gave the address.
Pieter Wuille
CC BY-SA 3.0
2015-11-09T03:44:31.423Z
2015-11-10T01:41:11.777Z
2015-11-10T01:41:11.777Z
Thomas
<p>I visit so many faucets everyday and some gaming faucets like wonderlandcoin,playbitcoin,faucetbirds,robotcoingame and many more.I also visit some betting websites like satoshibet,777dice and many others.</p>

<p>Some of them have a deposit bitcoin option to progress in game faster.</p>

<p>The website automatically generates a unique deposit address for me.
I am also planning to build a betting game website so I wanted to know that how to make that deposit address part for my website.
I actually don't know, how it works.
It may be a script or a address generated by some API.
HELP ME. PLEASE
EDIT</p>

<p>I also want to know that how those websites triggers that the payment is sent by a particular user?</p>

<blockchain><api><faucets>
How do deposit bitcoin works?
Yash Lotan
# How do deposit bitcoin works?

(Asked by: username_0 on 2015-11-09)

I visit so many faucets everyday and some gaming faucets like wonderlandcoin,playbitcoin,faucetbirds,robotcoingame and many more.I also visit some betting websites like satoshibet,777dice and many others.

Some of them have a deposit bitcoin option to progress in game faster.

The website automatically generates a unique deposit address for me.
I am also planning to build a betting game website so I wanted to know that how to make that deposit address part for my website.
I actually don't know, how it works.
It may be a script or a address generated by some API.
HELP ME. PLEASE
EDIT

I also want to know that how those websites triggers that the payment is sent by a particular user?

**Tags:** blockchain, api, faucets


---

## 1 answers

### Answer by username_1 on 2015-11-09. Score: 0

You need to create a key pair with bitcoin-cli. Then you can display the public key as an address for users to deposit to. Specifically, use the commands getnewaddress and dumpprivkey. If you set up a unique key pair for each user, then you can easily see how much each user has deposited.

Here are some examples:
<https://bitcoin.org/en/developer-examples#simple-spending>

> **Comments:**
> **username_0**: Please read the edit  
> **username_2**: The website knows which user paid, because they know to which user they gave the address.  

---

