index
Package index
import "github.com/luxfi/node/vms/components/index"Types
AddressTxsIndexer
AddressTxsIndexer maintains information about which transactions changed the balances of which addresses. This includes both transactions that increase and decrease an address's balance. A transaction is said to change an address's balance if either is true:
- A UTXO that the transaction consumes was at least partially owned by the address.
- A UTXO that the transaction produces is at least partially owned by the address.
func NewIndexer(
db database.Database,
log log.Logger,
metricsNamespace string,
metricsRegisterer metric.Registerer,
allowIncompleteIndices bool,
) (AddressTxsIndexer, error)func NewNoIndexer(db database.Database, allowIncomplete bool) (AddressTxsIndexer, error)