Webhooks

Hi,

Can somebody help me in creating webhooks in bitcore?

Thanks,
Manoj

I would start by taking a look at the service development guide: https://bitcore.io/guides/service-development

Hi,
I started with the same link.
When I restarted bitcored it is throwing following error:

[root@13259 testnode]# bitcored
module.js:339
throw err;
^

Error: Cannot find module 'bitcore-lib’
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (/home/myservice/index.js:2:15)
at Module._compile (module.js:435:26)
at Object.Module._extensions…js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
[root@13259 testnode]#

My js file has following entries:

var util = require(‘util’);
var bitcore = require(‘bitcore-lib’);
var Transaction = bitcore.Transaction;
var EventEmitter = require(‘event’).EventEmitter;

Please let us know if you have any idea how we can include “bitcore-lib”.

Thanks
-Manoj

Hi,
I found a work around by replacing
var bitcore = require(‘bitcore-lib’);
with
var bitcore = require(’/home/testnode/node_modules/bitcore-lib’);

Thanks
-Manoj

I am working for satoshipay and we have implemented a notification service that calls webhooks for all incoming transactions. Is that what you are looking for? Satoshipay plans to open source the service soon. Would of course be nice to join forces. What kind of webhooks to you look for?

Nice to hear that…
I want to write a service which returns the number of confirmations taking place on certain transactions (on certain addresses). I don’t want it for all transactions.

Do you think that bus.scubscribe is better approach for this?

Thanks