# Functions
Bloom9 returns the bloom filter for the given data.
BloomLookup is a convenience-method to check presence in the bloom filter.
BytesToBloom converts a byte slice to a bloom filter.
No description provided by the author
CopyHeader creates a deep copy of a block header.
CreateBloom creates a bloom filter out of the give Receipts (+Logs).
DeriveSha creates the tree hashes of transactions, receipts, and withdrawals in a block header.
EncodeNonce converts the given integer to a block nonce.
FullAccount decodes the data on the 'slim RLP' format and returns the consensus format account.
FullAccountRLP converts data on the 'slim RLP' format into the full RLP-format.
HashDifference returns a new set which is the difference between a and b.
HeaderParentHashFromRLP returns the parentHash of an RLP-encoded header.
L1Cost computes the the data availability fee for transactions in blocks prior to the Ecotone upgrade.
LatestSigner returns the 'most permissive' Signer available for the given chain configuration.
LatestSignerForChainID returns the 'most permissive' Signer available.
LogsBloom returns the bloom bytes for the given logs.
MakeSigner returns a Signer based on the given chain config and block number.
MustSignNewTx creates a transaction and signs it.
NewBlock creates a new block.
NewBlockWithHeader creates a block with the given header data.
NewBlockWithWithdrawals creates a new block with withdrawals.
NewCancunSigner returns a signer that accepts - EIP-4844 blob transactions - EIP-1559 dynamic fee transactions - EIP-2930 access list transactions, - EIP-155 replay protected transactions, and - legacy Homestead transactions.
NewContractCreation creates an unsigned legacy transaction.
No description provided by the author
NewEIP2930Signer returns a signer that accepts EIP-2930 access list transactions, EIP-155 replay protected transactions, and legacy Homestead transactions.
NewEmptyStateAccount constructs an empty state account.
NewL1CostFunc returns a function used for calculating data availability fees, or nil if this is not an op-stack chain.
NewLondonSigner returns a signer that accepts - EIP-1559 dynamic fee transactions - EIP-2930 access list transactions, - EIP-155 replay protected transactions, and - legacy Homestead transactions.
NewReceipt creates a barebone transaction receipt, copying the init fields.
No description provided by the author
NewTransaction creates an unsigned legacy transaction.
NewTx creates a new transaction.
Sender returns the address derived from the signature (V, R, S) using secp256k1 elliptic curve and an error if it failed deriving or upon an incorrect signature.
SignNewTx creates a transaction and signs it.
SignTx signs the transaction using the given signer and private key.
SlimAccountRLP encodes the state account in 'slim RLP' format.
TrieRootHash returns the hash itself if it's non-empty or the predefined emptyHash one instead.
TxDifference returns a new set which is the difference between a and b.
# Constants
Transaction types.
bytes [16:20] of the slot.
bytes [20:24] of the slot.
Transaction types.
BloomBitLength represents the number of bits used in a header log bloom.
BloomByteLength represents the number of bytes used in a header log bloom.
The version number for post-canyon deposit receipts.
No description provided by the author
Transaction types.
Transaction types.
ReceiptStatusFailed is the status code of a transaction if execution failed.
ReceiptStatusSuccessful is the status code of a transaction if execution succeeded.
# Variables
BedrockL1AttributesSelector is the function selector indicating Bedrock style L1 gas attributes.
EcotoneL1AttributesSelector is the selector indicating Ecotone style L1 gas attributes.
c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470.
EmptyReceiptsHash is the known hash of the empty receipt set.
EmptyRootHash is the known root hash of an empty merkle trie.
EmptyTxsHash is the known hash of the empty transaction set.
1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347.
EmptyVerkleHash is the known hash of an empty verkle trie.
EmptyWithdrawalsHash is the known hash of the empty withdrawal set.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
L2BlobBaseFeeSlot was added with the Ecotone upgrade and stores the blobBaseFee L1 gas attribute.
L1BlockAddr is the address of the L1Block contract which stores the L1 gas attributes.
L1FeeScalarsSlot as of the Ecotone upgrade stores the 32-bit basefeeScalar and blobBaseFeeScalar L1 gas attributes at offsets `BaseFeeScalarSlotOffset` and `BlobBaseFeeScalarSlotOffset` respectively.
No description provided by the author
No description provided by the author
# Structs
AccessListTx is the data of EIP-2930 access list transactions.
AccessTuple is the element type of an access list.
BlobTx represents an EIP-4844 transaction.
BlobTxSidecar contains the blobs of a blob transaction.
Block represents an Ethereum block.
Body is a simple (mutable, non-safe) data container for storing and moving a block's data contents (transactions and uncles) together.
No description provided by the author
DynamicFeeTx represents an EIP-1559 transaction.
EIP155Signer implements Signer using the EIP-155 rules.
FrontierSigner implements Signer interface using the frontier rules.
Header represents a block header in the Ethereum blockchain.
HomesteadSigner implements Signer interface using the homestead rules.
LegacyOptimismStoredReceiptRLP is the pre bedrock storage encoding of a receipt.
LegacyTx is the transaction data of the original Ethereum transactions.
Log represents a contract log event.
Receipt represents the results of a transaction.
RollupCostData is a transaction structure that caches data for quickly computing the data availablility costs for the transaction.
SlimAccount is a modified version of an Account, where the root is replaced with a byte slice.
StateAccount is the Ethereum consensus representation of accounts.
Transaction is an Ethereum transaction.
Withdrawal represents a validator withdrawal from the consensus layer.
# Interfaces
DerivableList is the input to DeriveSha.
Signer encapsulates transaction signature handling.
No description provided by the author
TrieHasher is the tool used to calculate the hash of derivable list.
TxData is the underlying data of a transaction.
# Type aliases
AccessList is an EIP-2930 access list.
A BlockNonce is a 64-bit hash which proves (combined with the mix-hash) that a sufficient amount of computation has been carried out on a block.
No description provided by the author
Bloom represents a 2048 bit bloom filter.
L1CostFunc is used in the state transition to determine the data availability fee charged to the sender of non-Deposit transactions.
LogForStorage is a wrapper around a Log that handles backward compatibility with prior storage formats.
ReceiptForStorage is a wrapper around a Receipt with RLP serialization that omits the Bloom field and deserialization that re-computes it.
Receipts implements DerivableList for receipts.
Transactions implements DerivableList for transactions.
TxByNonce implements the sort interface to allow sorting a list of transactions by their nonces.
Withdrawals implements DerivableList for withdrawals.