Title: [ANN] Bitcoin Node API - Automatically map rpc commands to urls in Node.js Post by: NielDLR on July 15, 2013, 01:40:41 AM Hey guys,
I'm the lead Bitcoin and front-end developer for Min.io (http://min.io). I'm a big fan of Node.js. I use the Bitcoin-Node (https://github.com/freewil/node-bitcoin) module to interface with bitcoind. However, often I would do testing and needed to run a command quickly without having to code the command and then run the server again. By using the browser I wanted to just run any command directly with no fuss. So, I created Bitcoin Node Api (https://github.com/nieldlr/Bitcoin-Node-Api). This an Express JS middleware plugin that opens a chosen url to interface with your chosen Bitcoin wallet. An example Node.js Express server. As easy as that! Code: var bitcoinapi = require('bitcoin-node-api'); Just add the method name after the binded url. Code: http://localhost:5000/URL/METHOD For example: Code: http://localhost:5000/bitcoin/api/getinfo Returns this: Code: { It's in its infancy. Some commands do not work out of the box, specifically the more complex commands. If you like this project, star/watch it and/or contribute code. You can read more about the project by checking out the repo (https://github.com/nieldlr/Bitcoin-Node-Api). I'll be adding support for more commands as time goes on. |