@satoshipay/bitcore-notifications

0.2.4 • Public • Published

Bitcore Notifications Service

Service that can be plugged into bitcore-node and calls webhooks on certain events.

Supported events:

New transaction broadcasted

The endpoints are going to be called with the insight-api tx json schema.

Usage

var notifications = require('bitcore-notifications');

// Add bitcore notifications to the list of bitcore-node services
var configuration = {
  // Other options
  services: [
    // Other services...
    {
      name: 'bitcore-notifications',
      module: notifications,
      config: {
        webhooks: ['http://host.com/endpoint']
      }
    }
  ]
};

var node = new Node(configuration);
node.start(function (err) {
  // ...
};

Service Dependencies

  • bitcoind
  • address
  • insight-api

Readme

Keywords

none

Package Sidebar

Install

npm i @satoshipay/bitcore-notifications

Weekly Downloads

2

Version

0.2.4

License

All rights reserved

Unpacked Size

4.13 kB

Total Files

6

Last publish

Collaborators

  • erasmush
  • satoshipay-npm
  • alanpearce
  • torstenstueber
  • lumens