Constructor
new TXIndexer(options)
Extends:
Parameters:
Name |
Type |
Description |
options |
Object
|
|
- Source:
Extends
Methods
Get a transaction with metadata.
Parameters:
Name |
Type |
Description |
hash |
Hash
|
|
- Source:
Returns:
-
Type
-
Promise
(async) getSpentView(tx) → {Promise}
Get coin viewpoint (historical).
Parameters:
Name |
Type |
Description |
tx |
TX
|
|
- Source:
Returns:
-
Type
-
Promise
(async) getTX(hash) → {Promise}
Parameters:
Name |
Type |
Description |
hash |
Hash
|
|
- Source:
Returns:
-
Type
-
Promise
(async) hasTX(hash) → {Promise}
Parameters:
Name |
Type |
Description |
hash |
Hash
|
|
- Source:
Returns:
-
Type
-
Promise
(async, private) indexBlock(meta, block, view)
Index transactions by txid.
Parameters:
Name |
Type |
Description |
meta |
BlockMeta
|
|
block |
Block
|
|
view |
CoinView
|
|
- Source:
(async, private) unindexBlock(meta, block, view)
Remove transactions from index.
Parameters:
Name |
Type |
Description |
meta |
BlockMeta
|
|
block |
Block
|
|
view |
CoinView
|
|
- Source: