block

package
v1.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Block

func Block(c *gin.Context)

Block returns a single blockResponse object containing information

about the requested block associated with the provided hash

func RecentBlocks

func RecentBlocks(c *gin.Context)

RecentBlocks returns a list of blockResponse objects containing most

recent blocks from each shard

func Routes

func Routes(router *gin.RouterGroup)

Routes defines block related routes

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 `elrondFacade` context variable

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL