An external bitcoind index management service.
By default, this module maintains script, spents, transaction block, txout and block indexes.
The module uses getblockheader
, getblockhash
, getblock
and getbestblockhash
RPC methods for blockchain synchronization; and getrawmempool
for mempool synchronization.
-txindex
is not required for this module; but is still useful for individual transaction lookup (aka txHex
).
See bitcoinjs#6 if you think an independent transaction index should be added.
Assumes yajrpc
is used for the bitcoind RPC; and leveldown
for the database.
See the example for usage.
The example/
is a functioning express REST HTTP API server.
- Requires a running
bitcoind
node- with
-txindex
, and - ZMQ (
-zmqpubhashtx=tcp://127.0.0.1:30001 -zmqpubhashblock=tcp://127.0.0.1:30001
)
- with
- Assumes
--testnet
ports/configuration, seeexample/.env
for configuration. - Change
-rpcworkqueue
from16
to32
for increased throughput [in some scenarios]