Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Cyclone on August 05, 2011, 10:04:10 PM



Title: Bitcoin api for php without running the bitcoin daemon?
Post by: Cyclone on August 05, 2011, 10:04:10 PM
I've got a site set up on shared hosting, pretty standard stuff with cPanel and the works. Naturally my host doesn't allow me any process control, and would certainly not take kindly to my attempting to run bitcoin.exe on the server.

Is there any sort of api which can run without the bitcoin daemon? All I need in the are ways to check how many coins are in a given wallet, how many coins were sent from a particular address TO that given wallet, and a way to send bitcoins to any wallet (not owned by me necessarily)

Can someone point me in the right direction here? I do understand that I could run the daemon on a home computer but that's really not optimal, and it's too much effort to purchase and configure a vps for this. Surely there's some purely PHP api for this?

I should also point out that my host has limitations in place which will auto-suspend my account should my cpu usage be too high, so this cannot be too intensive for my server.


Title: Re: Bitcoin api for php without running the bitcoin daemon?
Post by: nhodges on August 05, 2011, 10:07:31 PM
Do you need to be able to interact with a wallet.dat file or are you merely querying the balance on x wallet address?


Title: Re: Bitcoin api for php without running the bitcoin daemon?
Post by: Cyclone on August 05, 2011, 10:11:11 PM
Presumably I'd need to interact with a wallet.dat file. The basic flow of events would be as such:

User pays bitcoins to the server. Server can see how many bitcoins user paid. Server pays another user or the original user an amount of bitcoins.

The server needs to be able to do those three actions solely from php.

EDIT: I've read the "lazy api" stuff on the wiki, none of that is desired or possible because they depend on trusting outside services to be reliable.


Title: Re: Bitcoin api for php without running the bitcoin daemon?
Post by: BitVapes on August 06, 2011, 05:50:49 AM
you can run bitcoind remotely (like on your home pc) and interact with it via rpc, but I wouldn't suggest that.  Just upgrade to a VPS server so you can install bitcoind


Title: Re: Bitcoin api for php without running the bitcoin daemon?
Post by: payb.tc on August 06, 2011, 01:12:02 PM
cyclone, i asked a similar question here, you can read the responses... https://bitcointalk.org/index.php?topic=30621.msg402697#msg402697


Title: Re: Bitcoin api for php without running the bitcoin daemon?
Post by: BitcoinNotify.com on September 03, 2011, 03:51:17 PM
User pays bitcoins to the server. Server can see how many bitcoins user paid. Server pays another user or the original user an amount of bitcoins.

https://bitcoinnotify.com solves at least half of your problem - you can receive payment notifications as HTTP requests.