@damnherzg/web3-blockchain

1.0.8 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @damnherzg/web3-blockchain

Weekly Downloads

6

Version

1.0.8

License

ISC

Unpacked Size

12 kB

Total Files

10

Last publish

Collaborators

  • damnherzg