Skip to content
forked from bitcoinjs/indexd

An external bitcoind index management service module

License

Notifications You must be signed in to change notification settings

SkynetInc/indexd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

indexd

build status Version

An external bitcoind index management service.

Indexes

By default, this module includes a script, spents, transaction block, txout, tx, median time past and fee 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.

Usage

Assumes yajrpc is used for the provided bitcoind RPC object; and leveldown for the database object. See the example server for an example of an express HTTP API using indexd.

Conventions

When conveying block height, -1 represents unconfirmed (in the mempool). null represents unknown or missing.

For example, the height of the transaction ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff in the Bitcoin blockchain is null (it doesn't exist!).

LICENSE ISC

About

An external bitcoind index management service module

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%