Bitcoin Forum

Other => Beginners & Help => Topic started by: BitcoinDealer on June 21, 2011, 06:53:11 PM



Title: Bitcoin Automation
Post by: BitcoinDealer on June 21, 2011, 06:53:11 PM
Hi,

What's the best way to catch transaction information for automated handling of purchases on a website. For example, the instawallet site, is it open source?


Title: Re: Bitcoin Automation
Post by: BitcoinDealer on June 21, 2011, 07:06:07 PM
Bitcoin seems to lack this feature yet


Title: Re: Bitcoin Automation
Post by: MBH on June 21, 2011, 07:19:58 PM
You could use blockexplorer.com to track the transactions. The client shows how many confirmations the transactions have received; you could make use of that.


Title: Re: Bitcoin Automation
Post by: kjj on June 21, 2011, 08:39:02 PM
The listtransactions command will do it, or listreceivedbyaddress.  Most sites use JSON RPC to communicate with a bitcoind daemon, either running on the webserver or elsewhere.

You can play with it a bit on the command line to see how it all works.  Normally, you use getnewaddress to create a new address, then setaccount to associate the address with an account (just a name), then "listtransactions" to see if it has arrived yet.


Title: Re: Bitcoin Automation
Post by: bbjansen on June 21, 2011, 08:41:07 PM
I will look into this soon too and would love to see or else develop a WHMCS plugin that will support payments and invoices via Bitcoins. It will probably be a bit more tricky than a standard PayPal transaction/invoice but should be possible.


Title: Re: Bitcoin Automation
Post by: BitcoinDealer on June 21, 2011, 09:18:56 PM
Yeah I guess it requires some modified Bitcoin client.


Title: Re: Bitcoin Automation
Post by: kjj on June 21, 2011, 11:18:09 PM
No, it works just fine with the stock client.  You may need to create or edit a bitcoin.conf file to tell the software to listen for API requests.


Title: Re: Bitcoin Automation
Post by: BitcoinDealer on June 21, 2011, 11:29:45 PM
Whats the stock client?


Title: Re: Bitcoin Automation
Post by: kjj on June 21, 2011, 11:31:52 PM
The stock client is the one you can download from here (http://www.bitcoin.org/).