Bitcoin Forum
December 04, 2016, 02:17:18 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Bitcoin api for php without running the bitcoin daemon?  (Read 1587 times)
Cyclone
Newbie
*
Offline Offline

Activity: 22



View Profile
August 05, 2011, 10:04:10 PM
 #1

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.

19kyMJMo6YHT76ZPc1ikGbEoe26qNTdqG6
1480861038
Hero Member
*
Offline Offline

Posts: 1480861038

View Profile Personal Message (Offline)

Ignore
1480861038
Reply with quote  #2

1480861038
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1480861038
Hero Member
*
Offline Offline

Posts: 1480861038

View Profile Personal Message (Offline)

Ignore
1480861038
Reply with quote  #2

1480861038
Report to moderator
nhodges
Sr. Member
****
Offline Offline

Activity: 308


View Profile
August 05, 2011, 10:07:31 PM
 #2

Do you need to be able to interact with a wallet.dat file or are you merely querying the balance on x wallet address?

Cyclone
Newbie
*
Offline Offline

Activity: 22



View Profile
August 05, 2011, 10:11:11 PM
 #3

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.

19kyMJMo6YHT76ZPc1ikGbEoe26qNTdqG6
BitVapes
Full Member
***
Offline Offline

Activity: 140


BitVapes.com


View Profile WWW
August 06, 2011, 05:50:49 AM
 #4

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

Buy Electronic Cigarettes with Bitcoin @ http://bitvapes.com
payb.tc
Hero Member
*****
Offline Offline

Activity: 812



View Profile
August 06, 2011, 01:12:02 PM
 #5

cyclone, i asked a similar question here, you can read the responses... https://bitcointalk.org/index.php?topic=30621.msg402697#msg402697
BitcoinNotify.com
Jr. Member
*
Offline Offline

Activity: 58


View Profile
September 03, 2011, 03:51:17 PM
 #6

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.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!