Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockData ¶
type BlockData struct { BlockID flow.Identifier `json:"block_id"` Height uint64 `json:"height"` Collections []*CollectionData `json:"collections"` }
type CollectionData ¶
type CollectionData struct { Index int `json:"index"` Transactions []*Transaction `json:"transactions"` }
func FindBlockTransactions ¶
func FindBlockTransactions( payloads storage.Payloads, collections storage.Collections, blockID flow.Identifier, ) ([]*CollectionData, error)
type Finder ¶
type Finder struct { State protocol.State Payloads storage.Payloads Collections storage.Collections }
func (*Finder) GetByHeightRange ¶
func (*Finder) RunByHeightRange ¶
func (f *Finder) RunByHeightRange(startHeight uint64, endHeight uint64, run func(*BlockData) error) error
startHeight and endHeight defines the range to iterate through and find transactions for each height, the run function is to process the queried transactions for each height, most common use case is to use run to export the given block data to json.
Click to show internal directories.
Click to hide internal directories.