Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct {
Hash string
Height int
Time time.Time
ProposerAddress string
TXCount int
RelayCount int
}
Block struct handler of all block fields to be indexed
type Indexer ¶
type Indexer struct {
// contains filtered or unexported fields
}
Indexer struct handler for Indexer functions
func NewIndexer ¶
NewIndexer returns Indexer instance with given input
func (*Indexer) IndexBlock ¶
IndexBlock converts block details to a known structure and saves them
func (*Indexer) IndexBlockTransactions ¶
IndexBlockTransactions converts block transactions to a known structure and saves them
type Provider ¶
type Provider interface {
GetBlock(blockNumber int) (*provider.GetBlockOutput, error)
GetBlockTransactions(blockHeight int, options *provider.GetBlockTransactionsOptions) (*provider.GetBlockTransactionsOutput, error)
}
Provider interface of needed provider functions
type Transaction ¶
type Transaction struct {
Hash string
FromAddress string
ToAddress string
AppPubKey string
Blockchains []string
MessageType string
Height int
Index int
StdTx *provider.StdTx
TxResult *provider.TxResult
Tx string
Entropy int
Fee int
FeeDenomination string
}
Transaction struct handler of all transaction fields to be indexed
Click to show internal directories.
Click to hide internal directories.