Documentation ¶
Overview ¶
Package blockhandler 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 HandleBlock ¶
func HandleBlock(block *fabcommon.Block) (*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.