blocks

package
v0.0.0-...-90f7a23 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBlockHeader

func GetBlockHeader(client *ethclient.Client) *types.Header

func GetBlockTransactionCount

func GetBlockTransactionCount(client *ethclient.Client, hash common.Hash) uint

func GetFullBlock

func GetFullBlock(client *ethclient.Client, blockNumber *big.Int) *types.Block

Types

type Block

type Block struct {
	Number          uint64
	Difficulty      uint64
	Time            uint64
	Hash            common.Hash
	Hex             string
	LenTransactions int
}

func (Block) FormatBlockDetails

func (block Block) FormatBlockDetails() string

Jump to

Keyboard shortcuts

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