Documentation
¶
Overview ¶
Package blockfetcher provides functionality for fetching blocks from blockchain
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CustomBlock ¶
CustomBlock stores slice of transactions (with block data)
func GetBlock ¶
func GetBlock(ledgerClient LedgerClient, blocknum uint64) (*CustomBlock, error)
GetBlock gets information about specified block with blocknum number
type LedgerClient ¶
type LedgerClient interface {
QueryBlock(blockNumber uint64, options ...ledger.RequestOption) (*fabcommon.Block, error)
}
LedgerClient interface used for dependency injection of Fabric ledger client
Click to show internal directories.
Click to hide internal directories.