How to use a custom service running on local node?

(FedFranz) #1

I developed a custom service on my local node.
It is running and working, but what if I want another script to make use of this service?

If I try to require the module, I get the infamous “More than one instance of bitcore-lib” error that really seems to have no solution.

Is there some other way?

(FedFranz) #2

I guess this is the answer I was looking for:

(FedFranz) #3

Now another question arises:

How do I get the Node reference of a local running node?