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) UnmarshalJSON ¶
type Client ¶
type Client interface { geth.ChainReader geth.ChainStateReader geth.ChainSyncReader geth.ContractCaller geth.PendingContractCaller geth.LogFilterer geth.TransactionReader geth.TransactionSender geth.GasPricer geth.GasPricer1559 geth.FeeHistoryReader geth.PendingStateReader geth.GasEstimator geth.BlockNumberReader geth.ChainIDReader NetworkID(ctx context.Context) (*big.Int, error) GetProof(ctx context.Context, account gethcommon.Address, keys []string, blockNumber *big.Int) (*gethclient.AccountResult, error) }
type Header ¶
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"` }
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
Click to show internal directories.
Click to hide internal directories.