I'm wrapping up a few projects, and I'm only accepting crypto payments right now, specifically BTC (might add others later). I really want to handle payments through my wallet only because I don’t want to rely on centralized services like TripleA. My goal is to create a fresh deposit address with zero blockchain history to keep transactions clear and avoid any mix-ups. I'm using the Electrum wallet and coding my site with HTML/CSS for the frontend and PHP for the backend.
creating new deposit address (Electrum)
7 replies 408 views
coin_sigmaLegendary
Posts: 1275 · Reputation: 5553
#2May 25, 2017, 07:45 PM
It seems you're not done yet? You didn't mention what exactly you need?
Or do you developing a payment method and you are trying to implement it on your website?
I suggest if you don't want to some control your wallet or use any centralized payment methods why not use BTCpayserver?
You can host this on your own PC and add other coins supported.
If you are interested check this link below.
- https://github.com/btcpayserver/btcpayserver
i need help with how to set-up freshly new deposit address everytime someone want to deposit money
coin_sigmaLegendary
Posts: 1275 · Reputation: 5553
#4May 27, 2017, 01:56 AM
If that's what you need then I already provided the link it only needs your xPub or master public key all generated deposit addresses are generated from your own wallet you fully control like the wallet you created from Electrum you can use the xPub from that wallet to import it into BTCpay all deposit addresses generated when someone wants to deposit in your site it would generate a unique unused address that you can also see in your Electrum wallet.
Better read the documentation to guide you on how to host this below
- https://docs.btcpayserver.org/Walkthrough/
You can also watch their videos here https://m.youtube.com/channel/UCpG9WL6TJuoNfFVkaDMp9ug
thanks a lot,
It depends on how many new addresses you need and how frequently. The simplest method would likely be to pre-generate a bunch of new addresses from your Electrum wallet. There Is no limit to the number of deposit addresses you can create in advance. These addresses can then be stored in a database. In the backend, a PHP script can be used to select a new, unique address from the database whenever needed. You can always add more addresses to the database as required.
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#7May 27, 2017, 02:30 PM
If you want to exclusively use Electrum:
You can use an "Electrum Merchant" setup which consists of an Electrum wallet on a secured machine and a "watch-only" (read-only) wallet on your website's server.
This provides the basic instructions on how to set it up: electrum.readthedocs.io/en/latest/merchant.html
Take note that Electrum is an SPV wallet which relies on public servers. (if you do not own one)
Most of which have a limit on the number of transactions and addresses they allow to sync.
For higher transaction volume, you must setup your own Electrum server which requires a full node.
I found two guides on technical steps and requirements to set up an Electrum server with a Bitcoin node.
Running your own Electrum server
How to set up your own Bitcoin node, Electrum wallet and Server
A Bitcoin full node is recommended but if privacy is important, use Tor to maximize privacy.
Related topics
- Using Electrum to Transfer from BRD Wallet with HPS Address 8
- Recovering a Bitcoin wallet and address 8
- Creating a list of non-zero wallets and their balances using Python 4
- Electrum Fees for Transactions 13
- bitcoin-qt sync issues and slow speeds 6
- CipherSeed: A Comprehensive Guide to Super-Secure Crypto Wallet Backups 5