2016-02-18 22:51:18 -06:00
|
|
|
indexers
|
|
|
|
========
|
|
|
|
|
2017-05-25 11:29:23 -05:00
|
|
|
[](https://travis-ci.org/btcsuite/btcd)
|
|
|
|
[](http://copyfree.org)
|
|
|
|
[](http://godoc.org/github.com/btcsuite/btcd/blockchain/indexers)
|
2016-02-18 22:51:18 -06:00
|
|
|
|
|
|
|
Package indexers implements optional block chain indexes.
|
|
|
|
|
|
|
|
These indexes are typically used to enhance the amount of information available
|
|
|
|
via an RPC interface.
|
|
|
|
|
|
|
|
## Supported Indexers
|
|
|
|
|
|
|
|
- Transaction-by-hash (txbyhashidx) Index
|
|
|
|
- Creates a mapping from the hash of each transaction to the block that
|
|
|
|
contains it along with its offset and length within the serialized block
|
|
|
|
- Transaction-by-address (txbyaddridx) Index
|
|
|
|
- Creates a mapping from every address to all transactions which either credit
|
|
|
|
or debit the address
|
|
|
|
- Requires the transaction-by-hash index
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ go get -u github.com/btcsuite/btcd/blockchain/indexers
|
|
|
|
```
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
Package indexers is licensed under the [copyfree](http://copyfree.org) ISC
|
|
|
|
License.
|