Versions in this module Expand all Collapse all v1 v1.1.1 Feb 22, 2026 v1.1.0 Feb 19, 2026 Changes in this version + const AddressLength + const BloomByteLength + const HashLength + const RLPSingleByteUpperLimit + const SignatureSize + const StateTransactionGasLimit + var EmptyCodeHash = StringToHash("0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470") + var EmptyRootHash = StringToHash("0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421") + var EmptyUncleHash = StringToHash("0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347") + var ErrInsufficientFunds = errors.New("insufficient funds for execution") + var ErrTxTypeNotSupported = errors.New("transaction type not supported") + var ExecuteStateSyncABIMethod = abi.NewMethod(...) + var HeaderHash func(h *Header) Hash + var ZeroAddress = Address + var ZeroHash = Hash + var ZeroNonce = Nonce + func AddressToString(address Address) string + func IsValidAddress(address string) error + func MarshalAccessListWith(arena *fastrlp.Arena, accessList AccessList) *fastrlp.Value + func MarshalRLPTo(obj marshalRLPFunc, dst []byte) []byte + func RegisterTxHashFork(txHashWithTypeFork string) error + func StringToBytes(str string) []byte + func UnmarshalRlp(obj unmarshalRLPFunc, input []byte) error + type AccessList []AccessTuple + func (al AccessList) Copy() AccessList + type AccessTuple struct + Address Address + StorageKeys []Hash + type Address [AddressLength]byte + func BytesToAddress(b []byte) Address + func StringToAddress(str string) Address + func (a *Address) UnmarshalText(input []byte) error + func (a Address) Bytes() []byte + func (a Address) MarshalText() ([]byte, error) + func (a Address) Ptr() *Address + func (a Address) String() string + type Block struct + Header *Header + Transactions []*Transaction + Uncles []*Header + func (b *Block) Body() *Body + func (b *Block) Hash() Hash + func (b *Block) MarshalRLP() []byte + func (b *Block) MarshalRLPTo(dst []byte) []byte + func (b *Block) MarshalRLPWith(ar *fastrlp.Arena) *fastrlp.Value + func (b *Block) Number() uint64 + func (b *Block) ParentHash() Hash + func (b *Block) Size() uint64 + func (b *Block) String() string + func (b *Block) UnmarshalRLP(input []byte) error + func (b *Block) WithSeal(header *Header) *Block + type Bloom [BloomByteLength]byte + func CreateBloom(receipts []*Receipt) (b Bloom) + func (b *Bloom) IsLogInBloom(log *Log) bool + func (b *Bloom) UnmarshalText(input []byte) error + func (b Bloom) MarshalText() ([]byte, error) + func (b Bloom) String() string + type Body struct + Transactions []*Transaction + Uncles []*Header + func (b *Body) MarshalRLPTo(dst []byte) []byte + func (b *Body) UnmarshalRLP(input []byte) error + type ExitProof struct + LeafIndex uint64 + Proof []Hash + type FullBlock struct + Block *Block + Receipts []*Receipt + type Hash [HashLength]byte + func BytesToHash(b []byte) Hash + func StringToHash(str string) Hash + func (h *Hash) UnmarshalText(input []byte) error + func (h Hash) Bytes() []byte + func (h Hash) MarshalText() ([]byte, error) + func (h Hash) String() string + type Header struct + BaseFee uint64 + Difficulty uint64 + ExtraData []byte + GasLimit uint64 + GasUsed uint64 + Hash Hash + LogsBloom Bloom + Miner []byte + MixHash Hash + Nonce Nonce + Number uint64 + ParentHash Hash + ReceiptsRoot Hash + Sha3Uncles Hash + StateRoot Hash + Timestamp uint64 + TxRoot Hash + func (h *Header) ComputeHash() *Header + func (h *Header) Copy() *Header + func (h *Header) Equal(hh *Header) bool + func (h *Header) HasBody() bool + func (h *Header) HasReceipts() bool + func (h *Header) IsGenesis() bool + func (h *Header) MarshalRLP() []byte + func (h *Header) MarshalRLPTo(dst []byte) []byte + func (h *Header) MarshalRLPWith(arena *fastrlp.Arena) *fastrlp.Value + func (h *Header) SetNonce(i uint64) + func (h *Header) UnmarshalRLP(input []byte) error + type Log struct + Address Address + BlockNumber uint64 + Data []byte + Topics []Hash + TxHash Hash + func (l *Log) MarshalRLPWith(a *fastrlp.Arena) *fastrlp.Value + type Nonce [8]byte + func (n Nonce) MarshalText() ([]byte, error) + func (n Nonce) String() string + type OverrideAccount struct + Balance *big.Int + Code []byte + Nonce *uint64 + State map[Hash]Hash + StateDiff map[Hash]Hash + type Proof struct + Data []Hash + Metadata map[string]interface{} + type RLPMarshaler interface + MarshalRLPTo func(dst []byte) []byte + type RLPStoreMarshaler interface + MarshalStoreRLPTo func(dst []byte) []byte + type RLPStoreUnmarshaler interface + UnmarshalStoreRLP func(input []byte) error + type RLPUnmarshaler interface + UnmarshalRLP func(input []byte) error + type Receipt struct + ContractAddress *Address + CumulativeGasUsed uint64 + GasUsed uint64 + Logs []*Log + LogsBloom Bloom + Root Hash + Status *ReceiptStatus + TransactionType TxType + TxHash Hash + func (r *Receipt) IsLegacyTx() bool + func (r *Receipt) MarshalLogsWith(a *fastrlp.Arena) *fastrlp.Value + func (r *Receipt) MarshalRLP() []byte + func (r *Receipt) MarshalRLPTo(dst []byte) []byte + func (r *Receipt) MarshalRLPWith(a *fastrlp.Arena) *fastrlp.Value + func (r *Receipt) MarshalStoreRLPTo(dst []byte) []byte + func (r *Receipt) SetContractAddress(contractAddress Address) + func (r *Receipt) SetStatus(s ReceiptStatus) + func (r *Receipt) UnmarshalRLP(input []byte) error + func (r *Receipt) UnmarshalStoreRLP(input []byte) error + type ReceiptStatus uint64 + const ReceiptFailed + const ReceiptSuccess + type Receipts []*Receipt + func (r *Receipts) MarshalRLPWith(a *fastrlp.Arena) *fastrlp.Value + func (r *Receipts) UnmarshalRLP(input []byte) error + func (r *Receipts) UnmarshalStoreRLP(input []byte) error + func (r Receipts) MarshalRLPTo(dst []byte) []byte + func (r Receipts) MarshalStoreRLPTo(dst []byte) []byte + type StateOverride map[Address]OverrideAccount + type StateSyncEvent struct + Data []byte + ID uint64 + Receiver ethgo.Address + Sender ethgo.Address + func (sse *StateSyncEvent) EncodeAbi() ([]byte, error) + func (sse *StateSyncEvent) String() string + func (sse *StateSyncEvent) ToMap() map[string]interface{} + type StateSyncProof struct + Proof []Hash + StateSync *StateSyncEvent + func (ssp *StateSyncProof) DecodeAbi(txData []byte) error + func (ssp *StateSyncProof) EncodeAbi() ([]byte, error) + type Transaction struct + AccessList AccessList + ChainID *big.Int + From Address + Gas uint64 + GasFeeCap *big.Int + GasPrice *big.Int + GasTipCap *big.Int + Hash Hash + Input []byte + Nonce uint64 + R *big.Int + S *big.Int + To *Address + Type TxType + V *big.Int + Value *big.Int + func FindTxByHash(txs []*Transaction, hash Hash) (*Transaction, int) + func (t *Transaction) ComputeHash(blockNumber uint64) *Transaction + func (t *Transaction) Copy() *Transaction + func (t *Transaction) Cost() *big.Int + func (t *Transaction) EffectiveGasTip(baseFee *big.Int) *big.Int + func (t *Transaction) GetGasFeeCap() *big.Int + func (t *Transaction) GetGasPrice(baseFee uint64) *big.Int + func (t *Transaction) GetGasTipCap() *big.Int + func (t *Transaction) IsContractCreation() bool + func (t *Transaction) IsValueTransfer() bool + func (t *Transaction) MarshalRLP() []byte + func (t *Transaction) MarshalRLPTo(dst []byte) []byte + func (t *Transaction) MarshalRLPWith(arena *fastrlp.Arena) *fastrlp.Value + func (t *Transaction) MarshalStoreRLPTo(dst []byte) []byte + func (t *Transaction) Size() uint64 + func (t *Transaction) UnmarshalRLP(input []byte) error + func (t *Transaction) UnmarshalStoreRLP(input []byte) error + type TransactionHashFork interface + ComputeHash func(*Transaction) + SerializeForRootCalculation func(*Transaction, *fastrlp.ArenaPool) []byte + func GetTransactionHashHandler(blockNumber uint64) TransactionHashFork + type TransactionHashForkV1 struct + func (th *TransactionHashForkV1) ComputeHash(t *Transaction) + func (th *TransactionHashForkV1) SerializeForRootCalculation(t *Transaction, ap *fastrlp.ArenaPool) []byte + type TransactionHashForkV2 struct + func (th *TransactionHashForkV2) ComputeHash(t *Transaction) + func (th *TransactionHashForkV2) SerializeForRootCalculation(t *Transaction, _ *fastrlp.ArenaPool) []byte + type TxType byte + const AccessListTx + const DynamicFeeTx + const LegacyTx + const StateTx + func (t TxType) String() (s string)