Author

Topic: Bitcoin Insight API for an alt-coin - Auroracoin (Read 1913 times)

hero member
Activity: 686
Merit: 501
Stephen Reed
I modified Insight to work with the altcoin that I am developing.

Your problem communicating with your altcoin's version of bitcoind. Most likely it is not configured to accept RPC connections from Insight.

Here is the configuration file that I used OK.
Code:
# this instance accepts incoming connections
listen=1
# listening port
port=8333
# maintain an extra transaction index that allows the RPC getrawtransaction call to operate
txindex=1
# allow the local Insight process to send commands to this instance
rpcconnect=127.0.0.1
# allow rpc commands
server=1
# change these to what you want - they must match what is coded in Insight
rpcuser=rpctestuser
rpcpassword=rpctestpassword



PM me for more help as I am not watching this forum daily.
-Steve
newbie
Activity: 5
Merit: 0
Hello eveyone,

I'm trying to modify the bitcoin insight API for an altcoin (Auroracoin).  I have tried to follow the instructions on this site (http://devtome.com/doku.php?id=insightforaltcoins), and I'm an intermediate level programmer.

I have installed node, installed the bitcion-insight-api github repo and modified the networks.js file to match the genesis block of Auroracoin (http://explorer.auroracoin.eu/b/1NC5uWRdz)

Here is my networks.js

However, when I try to run insight.js using the following command I get the following error:

-$ node insight.js

info: insight server listening on port 3001 in development mode
{ '0': [Error: Could not connect to bitcoin via RPC: connect ECONNREFUSED] }
error: Could not connect to bitcoin via RPC: connect ECONNREFUSED
{ '0': 'connecting to 127.0.0.1:18333' }
{ '0': 'connection refused for 127.0.0.1:18333' }
{ '0': 'unkown error with peer 127.0.0.1:18333 (disconnecting): Error: connect ECONNREFUSED' }
{ '0': 'disconnected from peer 127.0.0.1:18333' }

Any help with modifying the bitcoin-insight-api core to look for an alt-coin instead of bitcoin would be greatly appreciated!

Joseph
Jump to: