types

package
v5.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeaderInfo

type HeaderInfo struct {
	Number *big.Int    `json:"number"`
	Hash   common.Hash `json:"hash"`
	Time   uint64      `json:"timestamp"`
}

HeaderInfo specifies the block header information in the ETH 1.0 chain.

func (*HeaderInfo) Copy

func (h *HeaderInfo) Copy() *HeaderInfo

Copy sends out a copy of the current header info.

func (*HeaderInfo) MarshalJSON

func (h *HeaderInfo) MarshalJSON() ([]byte, error)

MarshalJSON marshals as JSON.

func (*HeaderInfo) UnmarshalJSON

func (h *HeaderInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals from JSON.

Jump to

Keyboard shortcuts

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