1

I want to show information about my bitcoin node on a website.. how can I do this with windows + php + html + javascript + rpc?

I want something like that but with more information and perhaps more dynamic:

Example page: http://199.58.210.124/

1
  • This could be a good place to start: jsonrpcphp.org
    – user11221
    May 6, 2014 at 9:56

1 Answer 1

1

The node example is my node, this is the script that I'm using.

Download this script http://pastebin.com/wKytLZmc

Put it anywhere on your server and change the RPCUSER/PASS, NODEADDR and BITCOINADDR.

Run the script to update every time. You can also use it to create a chron job.

To run the script, after editing the values above, put it anywhere and type: python btc-update.py

If it just returns, that means it works :)

Note: If you get an error, you’ll need to install BitcoinRPC for the script to work. Go here: https://github.com/jgarzik/python-bitcoinrpc Follow Jeffs simple instructions. Once BitcoinRPC is installed, run the node script again and it will update!

Good luck!

3
  • I already tried this.. but I failed at installing BitcoinRPC on windows7. But I think I got it anyway .. wiencloud.tk/bitcoin-node I also made btcaudio.tk/live :) Thanks anyway!
    – T-rage_11
    May 7, 2014 at 23:43
  • This is pretty cool: btcaudio.tk/live can you share the script? Also how did you solve the windows7 issue?
    – user15669
    May 9, 2014 at 16:44
  • I didn't install BitcoinRPC .. I just used jsonRPCphp (jsonRPCClient.php) to connect to my bitcoin-node and get the connections, difficulty and blocks. [no python-script used] you can download the live-script here: btcaudio.tk/download
    – T-rage_11
    May 9, 2014 at 23:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.