JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 21
  • Score
    100M100P100Q56689F
  • License MIT

node.js module to access the blockchain websocket api

Package Exports

  • blockchain

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (blockchain) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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