Which file inside the insight-api store the RPC details for bitcore?


(Pankaj Kumar) #1

Inside the insight-api in which file RPC details are stored that make call to the bitcore node ?


(Nohea) #2

insight-api runs inside the bitcore-node instance.

The bitcore-node uses bitcore-node.json file for all services config.

You configure the “bitcoind” service to set the port for bitcoind rpc.

If you use “servicesConfig”: { “bitcoind”: { “connect”: [ ] } } instead of “spawn” it will connect to an existing *coind instance.

These notes are for the v3 or v4 versions, i don’t know about the v5+ version using bcoin.


(Pankaj Kumar) #3

Cant we use the insight API code with another block chain ?