Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Block ¶
Block returns a single blockResponse object containing information
about the requested block associated with the provided hash
func RecentBlocks ¶
RecentBlocks returns a list of blockResponse objects containing most
recent blocks from each shard
func RoutesForBlocksLists ¶
func RoutesForBlocksLists(router *gin.RouterGroup)
RoutesForBlocksLists defines routes related to the lists of blocks. Used separately so it will not conflict with the wildcard for block details route
Types ¶
type FacadeHandler ¶
type FacadeHandler interface { RecentNotarizedBlocks(maxShardHeadersNum int) ([]*external.BlockHeader, error) RetrieveShardBlock(blockHash []byte) (*external.ShardBlockInfo, error) }
FacadeHandler interface defines methods that can be used from `numbatFacade` context variable
Click to show internal directories.
Click to hide internal directories.