Tuesday, November 22, 2022
HomeBitcoinbitcoin core - addrindex not working

bitcoin core – addrindex not working


I am trying to create an index on addresses in my bitcoin full node so as to fetch the balances of a listing of addresses from the blockchain for an instructional mission with out utilizing the general public explorers.For that I put in the bitcoin core consumer (model 22) and configured it as follows:

# [core]
# Keep a full transaction index, utilized by the getrawtransaction rpc name.
txindex=1
addrindex=1

# Keep coinstats index utilized by the gettxoutsetinfo RPC.
coinstatsindex=1
# Run within the background as a daemon and settle for instructions.
daemon=1


# [rpc]
# Settle for command line and JSON-RPC instructions.
server=1
# Settle for public REST requests.
relaxation=1
# rpc auth settings
rpcauth=*******

dbcache=1000

And after that, I put in the bitcoin-rpc-explorer to create a personal explorer which is pointed to my bitcoin node appropriately (beneath in my env file for this explorer with the remainder of the parameters set to default):

BTCEXP_COIN=BTC
BTCEXP_BITCOIND_HOST=127.0.0.1
BTCEXP_BITCOIND_PORT=8332
BTCEXP_BITCOIND_USER=*******
BTCEXP_BITCOIND_PASS=*******
BTCEXP_BITCOIND_COOKIE=/path/to/bitcoind/.cookie
BTCEXP_BITCOIND_RPC_TIMEOUT=5000

Nonetheless after I insert an deal with within the search bar, I get this message

No deal with API is configured.
See the instance configuration file for assist establishing an deal with API.

which factors me to the pattern config file of the bitcoin node github repo (https://github.com/janoside/btc-rpc-explorer/blob/grasp/.env-sample)

so I checked my node’s indexes with the getindexinfo command and I received this:

{
  "txindex": {
    "synced": true,
    "best_block_height": 764153
  },
  "coinstatsindex": {
    "synced": true,
    "best_block_height": 764153
  }
}

So it could appear that addrindex just isn’t working for some cause. I did some analysis and a remark talked about that assist for this index has been faraway from latest variations of bitcoin core and that I ought to use an electrum server and electrum pockets for this and one other hyperlink talked about and addrindex patch to put in.

So does anybody know what precisely to do on this scenario and what the optimum answer is?
and is there any advisable addrindex patch for bitcoin core if any?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments