node.js api to the blockchain websocket api
JavaScript
Switch branches/tags
Nothing to show
Latest commit 8e4b259 Jan 14, 2015 @abrkn update travis
Permalink
Failed to load latest commit information.
bin remove optimist, add travis, fix description Oct 30, 2012
lib Update websockets URL. Jan 7, 2015
test fix global leak Jan 14, 2015
.gitignore first commit Oct 30, 2012
.travis.yml update travis Jan 14, 2015
LICENSE add license Jan 14, 2015
README.md add license Jan 14, 2015
package.json 1.0.7 Jan 14, 2015

README.md

blockchain

node.js module to access the blockchain websocket api

Build Status

installation

npm install blockchain

donations

1Kk26TMvgxFavxuLTNdkmh7iHzs2A7524y

methods

  • constructor(): creates a new socket and calls open
  • subscribe(address, callback)
  • unsubscribe(address, callback)
  • open()
  • close()

events

  • connect: function()
  • connectFailed: function(errorDescription)
  • disconnect function()
  • error: function(error)

notes

  • subscriptions persist
  • see tests for example

license

ISC