p2p based txindex for Bitcoin
This project is still experimental, use at your own risk!
The indexer connects to a fullnode over the p2p protocol (at the moment 127.0.0.1:8333 mainnet) and performs the following actions:
The indexer trusts the remote peer! Only connect to a trusted peer, ideally via localhost. If you connect via the public internet, make sure you connect through a secure channel.
/blockhash/<txhash>
will return the blockhash of the requested transaction id
** /tx/<txhash>
will return the transaction of the requested txid (will fetch the relevant block via p2p and return the tx)./autogen.sh
./configure
make -j
./src/bitcoincore-indexd
Options
./src/bitcoincore-indexd --datadir=/tmp
(change datadir, default is ~/.bitcoincore-indexd)./src/bitcoincore-indexd --dbcache=xxx
(change the leveldb dbcache)