Class: AddrIndexer

indexer~AddrIndexer(options)

AddrIndexer

Constructor

new AddrIndexer(options)

Create a indexer

Extends:
  • Indexer
Parameters:
Name Type Description
options Object
Source:

Extends

  • Indexer

Methods

(async) getHashesByAddress(addr, options) → {Promise}

Get transaction hashes to an address in ascending or descending order. If the after argument is supplied, results will be given after that transaction hash. The default order is ascending from oldest to latest.

Parameters:
Name Type Description
addr Address
options Object
Properties
Name Type Description
after Buffer

A transaction hash

limit Number
reverse Boolean
Source:
Returns:
Type
Promise

(async, private) indexBlock(meta, block, view)

Index transactions by address.

Parameters:
Name Type Description
meta BlockMeta
block Block
view CoinView
Source:

(async, private) unindexBlock(meta, block, view)

Remove addresses from index.

Parameters:
Name Type Description
meta BlockMeta
block Block
view CoinView
Source: