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.
Click to show internal directories.
Click to hide internal directories.