0

Need to create a bitcoin explorer using bitcoind. I am using bitcore and insight API for this purpose.

Currently running bitcoind in AWS Server with all port open. Need to connect this running bitcoind with bitcore and use insight-api and UI in different server.

This my bitcore-node.json file:

    var configuration = {
 datadir: '/home/.bitcoin',
 network: 'testnet',
 services: [
   {
     name: 'bitcoind',
     module: Bitcoin,
     config: {
       spawn: {
         datadir: '/home/.bitcoin',
         exec: '/home/Downloads/bitcoin-0.16.1/bin/bitcoind'
       }
     }
   },
   {
       name: 'web',
       module: Web,
       config: {
           port: 4001
       }
   }
 ]
};

This is my bitcoin.conf

server=1
testnet=1
whitelist=127.0.0.1
txindex=1
addressindex=1
timestampindex=1
spentindex=1
zmqpubrawtx=tcp://127.0.0.1:28332
zmqpubhashblock=tcp://127.0.0.1:28332
rpcallowip=127.0.0.1
uacomment=bitcore

Need to Connect the Insight API to in the A server to Bitcoin in B server.

1 Answers1

0

Follow the instructions on this README. It should install bitcore (the bitcoin full node implementation by Bitpay), insight-api, and insight-ui. The instructions are:

npm install -g bitcore@latest
bitcore create mynode
cd mynode
bitcore install insight-api
bitcore install insight-ui
bitcore start

If that doesn't sync with the bitcoin network and start showing blocks, then please share some logs/errors and we can help you further.

JBaczuk
  • 7,278
  • 1
  • 11
  • 32