rpcblock

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Pending   = Block{"pending"}
	Latest    = Block{"latest"}
	Safe      = Block{"safe"}
	Finalized = Block{"finalized"}
)

Functions

This section is empty.

Types

type Block

type Block struct {
	// contains filtered or unexported fields
}

Block represents the block ref value in RPC calls. It can be either a label (e.g. latest), a block number or block hash.

func ByHash

func ByHash(hash common.Hash) Block

ByHash references a block by hash. Canonical or non-canonical blocks may be referenced.

func ByNumber

func ByNumber(blockNum uint64) Block

ByNumber references a canonical block by number.

func (Block) ArgValue

func (b Block) ArgValue() any

Jump to

Keyboard shortcuts

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