<p>You can use bitcoinjs-lib, a nodejs package which easily generates addresses. Apart from that it manages transaction signing and other useful stuff too which would help in development. You can check out their site (where there is a list of organisations, including blockchain.info, who use their package)</p>

<p><a href="https://bitcoinjs.org/" rel="nofollow noreferrer">Bitcoinjs</a></p>

CC BY-SA 3.0
2016-11-02T15:33:16.867Z
This I assume would work like a web wallet. I want to integrate my already existing bitcoin wallet (not web) to generate addresses in the browser. Would that be possible or would it have to be a web wallet only?
tbolt
CC BY-SA 3.0
2016-11-03T10:51:04.643Z
Your bitcoin wallet is nothing but a collection of your private keys (in WIF format) and the public keys(addresses). You can obviously add more keys to the wallet using the wallet software, or add another address not generated from the wallet too. The integration you speak of is just adding new key-pairs generated by bitcoin-js which all bwallet software support.
Shabahat M. Ayubi
CC BY-SA 4.0
2022-02-22T06:18:11.200Z
this library only works with btc I presume! Is there a package to accept more coins? such as BCH, DOGE, etc. In addition, is it safe to generate a public address for each user, or is it better to assign a new wallet to each user?
fafa.mnzm
CC BY-SA 3.0
2016-11-02T15:16:09.627Z
2016-11-03T10:46:03.117Z
2016-11-03T10:46:03.117Z
Shabahat M. Ayubi
<p>I'm trying to create a website that will allow me to accept payment in bitcoins. What I need is a way to integrate the wallet with the website so that I can generate a unique address to give each user to deposit the bitcoins. The reason to create a different address for each user to pay is to create a sense of anonymity. The site is purely for transactional purposes and not for mining. How do I generate a unique valid address for each user?</p>

<wallet><website-integration>
Bitcoin wallet integration with website
tbolt
# Bitcoin wallet integration with website

(Asked by: username_0 on 2016-11-02)

I'm trying to create a website that will allow me to accept payment in bitcoins. What I need is a way to integrate the wallet with the website so that I can generate a unique address to give each user to deposit the bitcoins. The reason to create a different address for each user to pay is to create a sense of anonymity. The site is purely for transactional purposes and not for mining. How do I generate a unique valid address for each user?

**Tags:** wallet, website-integration


---

## 1 answers

### Answer by username_1 on 2016-11-02. Score: 2 | Accepted answer

You can use bitcoinjs-lib, a nodejs package which easily generates addresses. Apart from that it manages transaction signing and other useful stuff too which would help in development. You can check out their site (where there is a list of organisations, including blockchain.info, who use their package)

[Bitcoinjs](https://bitcoinjs.org/)

> **Comments:**
> **username_0**: This I assume would work like a web wallet. I want to integrate my already existing bitcoin wallet (not web) to generate addresses in the browser. Would that be possible or would it have to be a web wallet only?  
> **username_1**: Your bitcoin wallet is nothing but a collection of your private keys (in WIF format) and the public keys(addresses). You can obviously add more keys to the wallet using the wallet software, or add another address not generated from the wallet too. The integration you speak of is just adding new key-pairs generated by bitcoin-js which all bwallet software support.  
> **username_2**: this library only works with btc I presume! Is there a package to accept more coins? such as BCH, DOGE, etc. In addition, is it safe to generate a public address for each user, or is it better to assign a new wallet to each user?  

---

