rpc

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

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

func (*Block) Block

func (b *Block) Block() *gethtypes.Block

func (*Block) FromBlock

func (b *Block) FromBlock(block *gethtypes.Block, config *params.ChainConfig) *Block

func (*Block) UnmarshalJSON

func (b *Block) UnmarshalJSON(msg []byte) error
type Header struct {
	Number           *hexutil.Big         `json:"number"`
	ParentHash       gethcommon.Hash      `json:"parentHash"`
	Nonce            gethtypes.BlockNonce `json:"nonce"`
	MixHash          gethcommon.Hash      `json:"mixHash"`
	UncleHash        gethcommon.Hash      `json:"sha3Uncles"`
	LogsBloom        gethtypes.Bloom      `json:"logsBloom"`
	Root             gethcommon.Hash      `json:"stateRoot"`
	Miner            gethcommon.Address   `json:"miner"`
	Difficulty       *hexutil.Big         `json:"difficulty"`
	Extra            hexutil.Bytes        `json:"extraData"`
	GasLimit         hexutil.Uint64       `json:"gasLimit"`
	GasUsed          hexutil.Uint64       `json:"gasUsed"`
	Time             hexutil.Uint64       `json:"timestamp"`
	TxRoot           gethcommon.Hash      `json:"transactionsRoot"`
	ReceiptsRoot     gethcommon.Hash      `json:"receiptsRoot"`
	BaseFee          *hexutil.Big         `json:"baseFeePerGas,omitempty"`
	WithdrawalsRoot  *gethcommon.Hash     `json:"withdrawalsRoot,omitempty"`
	BlobGasUsed      *hexutil.Uint64      `json:"blobGasUsed,omitempty"`
	ExcessBlobGas    *hexutil.Uint64      `json:"excessBlobGas,omitempty"`
	ParentBeaconRoot *gethcommon.Hash     `json:"parentBeaconBlockRoot,omitempty"`
	RequestsRoot     *gethcommon.Hash     `json:"requestsRoot,omitempty"`
	Hash             gethcommon.Hash      `json:"hash"`
}

func (*Header) FromHeader

func (h *Header) FromHeader(header *gethtypes.Header) *Header

func (*Header) Header

func (h *Header) Header() *gethtypes.Header

type Transaction

type Transaction struct {
	*gethtypes.Transaction
	// contains filtered or unexported fields
}

func NewTransactionFromGeth

func NewTransactionFromGeth(tx *gethtypes.Transaction) *Transaction

func (*Transaction) Tx

func (tx *Transaction) Tx() *gethtypes.Transaction

func (*Transaction) UnmarshalJSON

func (tx *Transaction) UnmarshalJSON(msg []byte) error

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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