<p>What you would probably want to do is just create one wallet for yourself which you encrypt, and then create some kind of data type on your server called wallet that you could create arbitrarily many of. </p>

<p>When people want to deposite money onto "their" wallet you would generate a new address for your wallet, which you can do as many times as you want. Once the bitcoins arrive you will credit them however many bitcoins they deposited on their fake wallet, which just lives on your server. </p>

<p>Then when they want to withdraw money you send bitcoins from your main wallet, making sure to never allow them to withdraw more then they have been credited. </p>

<p>When people want to make a purchase with bitcoins on your site you just give them whatever they paid for and deduct from however many bitcoins are currently being credited to their account. </p>

<p>While this is all possible, unless your making a heavily bitcoin centric service such as an exchange, I would recommend using a third party service which already has tools built for merchants such as <a href="https://coinbase.com/merchants" rel="nofollow">coinbase</a> or <a href="http://coinlab.com/" rel="nofollow">coinlab</a>. </p>

CC BY-SA 3.0
2013-06-22T18:18:32.697Z
2013-06-22T18:18:32.697Z
Loourr
<p>How to enable website users to trade bitcoins on my website? I also want user wallets stored on my server. So users user can buy and purchase bitcoins on my website and they can completely use my website as their local wallet. Like they can gets all information regarding all transaction as history on my website. </p>

CC BY-SA 3.0
2013-06-22T15:55:20.923Z
By "bitcoind" do you mean "bitcoins"?  Or is this the actual name of an alt currency?
eMansipater
CC BY-SA 3.0
2013-06-22T16:43:54.230Z
Why's this tagged with mining?
Nick ODell
<websites><website-integration>
How to enable website users to trade bitcoins on my website?
makewebapp
# How to enable website users to trade bitcoins on my website?

(Asked by: username_0 on 2013-06-22)

How to enable website users to trade bitcoins on my website? I also want user wallets stored on my server. So users user can buy and purchase bitcoins on my website and they can completely use my website as their local wallet. Like they can gets all information regarding all transaction as history on my website.

**Tags:** websites, website-integration

> **Comments:**
> **username_1**: By "bitcoind" do you mean "bitcoins"?  Or is this the actual name of an alt currency?  
> **username_2**: Why's this tagged with mining?  

---

## 1 answers

### Answer by username_3 on 2013-06-22. Score: 1

What you would probably want to do is just create one wallet for yourself which you encrypt, and then create some kind of data type on your server called wallet that you could create arbitrarily many of.

When people want to deposite money onto "their" wallet you would generate a new address for your wallet, which you can do as many times as you want. Once the bitcoins arrive you will credit them however many bitcoins they deposited on their fake wallet, which just lives on your server.

Then when they want to withdraw money you send bitcoins from your main wallet, making sure to never allow them to withdraw more then they have been credited.

When people want to make a purchase with bitcoins on your site you just give them whatever they paid for and deduct from however many bitcoins are currently being credited to their account.

While this is all possible, unless your making a heavily bitcoin centric service such as an exchange, I would recommend using a third party service which already has tools built for merchants such as [coinbase](https://coinbase.com/merchants) or [coinlab](http://coinlab.com/).


---

