Open KushalKochar opened 6 years ago
Can anyone please have a look on this issue?
I also encountered this problem. Can you solve it?
Any solve it?
Couldn't solve it and so left this and now using 3rd party indexer service
Any solve it?
这里有一些有用的信息: https://github.com/m24927605/BCH_Node_InsightAPI https://github.com/m24927605/BCH_Bitcore_v5.x_InsightAPI
this may be a little problem now, I am now bch running to 545957 this block has stopped
Hi,
I have setup two indexer (1 for BTC and 1 for BCH). BTC works fine on both main net and test net.
BCH indexer gives me error (Method not found. Code:-32601) for almost all api for e.g. (/insight-api/addrs/txs).
At the same time the same api call to get block details (/insight-api/block/0000000000000000013d158bdcf920e005272cda96d48ff60f1846344ce74f25) give me perfect result.
When I try (/insight-api/sync), I get the result:
{ "status": "finished", "blockChainHeight": 547253, "syncPercentage": 100, "height": 547253, "error": null, "type": "bitcore node" }
Using following config :
RUN git clone https://github.com/bitpay/bitcore.git RUN cd bitcore RUN npm install RUN cd ..
RUN bitcore create ctnode WORKDIR /ctnode RUN bitcore install insight-api . . . WORKDIR /ctnode/node_modules/bitcore-node/bin RUN wget https://download.bitcoinabc.org/0.18.0/linux/bitcoin-abc-0.18.0-x86_64-linux-gnu.tar.gz RUN tar -xzf bitcoin-abc-0.18.0-x86_64-linux-gnu.tar.gz RUN ln -sf bitcoin-abc-0.18.0/bin/bitcoind bitcoind
Generate default bitcoin.conf if none is yet existing
if [ ! -f ${BITCOIND_CONFIG} ]; then echo "server=1" >> ${BITCOIND_CONFIG}
echo "whitelist=127.0.0.1" >> ${BITCOIND_CONFIG}
fi
Generate default bitcore-node.json configuration if none is yet existing
if [ ! -f ${BITCORE_NODE_CONFIG} ]; then echo "{" >> ${BITCORE_NODE_CONFIG} echo " \"network\": \"${BITCOIND_NET}\"," >> ${BITCORE_NODE_CONFIG} echo " \"port\": 3001," >> ${BITCORE_NODE_CONFIG} echo " \"services\": [" >> ${BITCORE_NODE_CONFIG} echo " \"web\"," >> ${BITCORE_NODE_CONFIG} echo " \"bitcoind\"," >> ${BITCORE_NODE_CONFIG}
echo " \"bitcore-wallet-service\"," >> ${BITCORE_NODE_CONFIG}
Error on the console logs :
"POST /insight-api/addrs/txs" 400 29 1.559 "PostmanRuntime/7.3.0"