ethtypes

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeaderWithBody

type HeaderWithBody struct {
	BlockHash common.Hash
	Header    types.Header
	Body      RpcBody
}

func (*HeaderWithBody) UnmarshalJSON

func (b *HeaderWithBody) UnmarshalJSON(input []byte) error

type RpcBody

type RpcBody struct {
	Transactions []*RpcTx
}

type RpcTx

type RpcTx struct {
	TxHash common.Hash
	Tx     *types.Transaction
	TxExtraInfo
}

func (*RpcTx) UnmarshalJSON

func (tx *RpcTx) UnmarshalJSON(input []byte) error

type TxExtraInfo

type TxExtraInfo struct {
	BlockNumber      *string         `json:"blockNumber,omitempty"`
	BlockHash        *common.Hash    `json:"blockHash,omitempty"`
	From             *common.Address `json:"from,omitempty"`
	TransactionIndex hexutil.Uint64  `json:"transactionIndex"`
}

Jump to

Keyboard shortcuts

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