Bitcoin Forum
May 04, 2024, 11:08:06 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Trying to accept BTC on my website without relying on third party services  (Read 582 times)
contactlight (OP)
Full Member
***
Offline Offline

Activity: 168
Merit: 100


View Profile
January 09, 2014, 03:03:17 PM
 #1

Hi,
I am trying to accept Bitcoins on my website without relying on any third party services. This means I don't want to use Blockchain.info's notify service, or even Electrum since it depends on an Electrum server.

This leaves me with only one option, Bitcoind. I can interface with it through RPC without a problem, but I wasn't able to find anything that explains the 'good practices'.

Should I create a new address for each payment? After some point, wouldn't my wallet.dat become uncontrollably large? How many addresses can Bitcoind watch for before it gets sluggish? Since I can't delete addresses from my wallet.dat, I would have to delete it and recreate it in certain intervals. This seems like a bad solution, what some good practices here?
1714820886
Hero Member
*
Offline Offline

Posts: 1714820886

View Profile Personal Message (Offline)

Ignore
1714820886
Reply with quote  #2

1714820886
Report to moderator
Transactions must be included in a block to be properly completed. When you send a transaction, it is broadcast to miners. Miners can then optionally include it in their next blocks. Miners will be more inclined to include your transaction if it has a higher transaction fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714820886
Hero Member
*
Offline Offline

Posts: 1714820886

View Profile Personal Message (Offline)

Ignore
1714820886
Reply with quote  #2

1714820886
Report to moderator
1714820886
Hero Member
*
Offline Offline

Posts: 1714820886

View Profile Personal Message (Offline)

Ignore
1714820886
Reply with quote  #2

1714820886
Report to moderator
guybrushthreepwood
Legendary
*
Offline Offline

Activity: 1232
Merit: 1195



View Profile
January 09, 2014, 03:10:51 PM
 #2

Why do you need to create new addresses? Why not get them all sent to just one like you would with PP etc.
OnkelPaul
Legendary
*
Offline Offline

Activity: 1039
Merit: 1003



View Profile
January 09, 2014, 03:21:43 PM
 #3

Using a separate address for each payment is actually a good practice, as it enables you to know exactly which customer has paid (if you provide your service after payment, it's more or less a necessity to do it that way).

Unless you expect incredible amounts of transactions, bitcoind should do just fine. One thing that you should do is to regulary send the coins to a cold wallet address which is not controlled from that internet-connected server. That way, your loss would be minimized.
If you're really paranoid, you might set up the wallet on a separate machine so that it can only communicate with the main server through a narrowly defined channel. In such a setup, the wallet machine would only communicate freshly generated addresses to the web server, and would inform the web server about incoming payments to such addresses.

Onkel Paul

Akka
Legendary
*
Offline Offline

Activity: 1232
Merit: 1001



View Profile
January 09, 2014, 03:22:14 PM
 #4

Why do you need to create new addresses? Why not get them all sent to just one like you would with PP etc.

If you create a new one for each payment you can automate thing. 1.2 BTC send to address XXX = Payment for Order number XXX received.

The ability to have a "Account" for each payment of customer gives provides advantages in proof, accounting, automation and privacy for both customer and supplier (if used proper)

Sadly I don't know best practice examples for this, maybe you could start with blockchain? https://blockchain.info/api

All previous versions of currency will no longer be supported as of this update
quarkyplum
Full Member
***
Offline Offline

Activity: 378
Merit: 100


View Profile
January 09, 2014, 03:29:23 PM
 #5

http://coinbase.com/ for merchants! https://coinbase.com/merchants
DeboraMeeks
Hero Member
*****
Offline Offline

Activity: 588
Merit: 500


View Profile
January 09, 2014, 04:38:17 PM
 #6

IMO You need an experienced programmer effort for that (if you aren't) But I agree that you should generate an address each time for confirmation of each order separately.
nerobie
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
January 10, 2014, 10:38:36 AM
 #7

you might set up the wallet on a separate machine so that it can only communicate with the main server
BITMIXER.IO
Sr. Member
****
Offline Offline

Activity: 261
Merit: 263


View Profile
January 10, 2014, 03:07:49 PM
 #8

The large size of wallet.dat is not a problem for bitcoind, you should use a separate address for every payment.
There are no 'delete address' option in standard bitcoind command list. However some services (like our) require bitcoin address to be deleted. You may save all private keys of unspent transactions and import them to the new wallet.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!