package
1.15.2
Repository: https://github.com/ethereum/go-ethereum.git
Documentation: pkg.go.dev

# Functions

AddressToDelegation adds the delegation prefix to the specified address.
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.
CalcRequestsHash creates the block requestsHash value for a list of requests.
CopyHeader creates a deep copy of a block header.
CreateBloom creates a bloom filter out of the give Receipt (+Logs).
DepositLogToRequest unpacks a serialized DepositEvent.
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 of hashes that are present in a but not in b.
HeaderParentHashFromRLP returns the parentHash of an RLP-encoded header.
LatestSigner returns the 'most permissive' Signer available for the given chain configuration.
LatestSignerForChainID returns the 'most permissive' Signer available.
MakeSigner returns a Signer based on the given chain config and block number.
MergeBloom merges the precomputed bloom filters in the Receipts without recalculating them.
MustSignNewTx creates a transaction and signs it.
NewBlock creates a new block.
NewBlockWithHeader creates a block with the given header data.
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.
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.
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.
NewPragueSigner returns a signer that accepts - EIP-7702 set code transactions - EIP-4844 blob transactions - 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.
NewTransaction creates an unsigned legacy transaction.
NewTx creates a new transaction.
ParseDelegation tries to parse the address from a delegation slice.
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.
SignSetCode creates a signed the SetCode authorization.
SignTx signs the transaction using the given signer and private key.
SlimAccountRLP encodes the state account in 'slim RLP' format.
TxDifference returns a new set of transactions that are present in a but not in b.

# Constants

Transaction types.
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.
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.
Transaction types.

# Variables

DelegationPrefix is used by code to denote the account is delegating to another account.
c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470.
EmptyReceiptsHash is the known hash of the empty receipt set.
EmptyRequestsHash is the known hash of an empty request set, sha256("").
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.

# Structs

AccessListTx is the data of EIP-2930 access list transactions.
AccessTuple is the element type of an access list.
Account represents an Ethereum account and its attached data.
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.
DynamicFeeTx represents an EIP-1559 transaction.
EIP155Signer implements Signer using the EIP-155 rules.
ExecutionWitness represents the witness + proof used in a verkle context, to provide the ability to execute a block statelessly.
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.
LegacyTx is the transaction data of the original Ethereum transactions.
Log represents a contract log event.
Receipt represents the results of a transaction.
SetCodeAuthorization is an authorization from an account to deploy code at its address.
SetCodeTx implements the EIP-7702 transaction type which temporarily installs the code at the signer's address.
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.
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.
Bloom represents a 2048 bit bloom filter.
GenesisAlloc specifies the initial state of a genesis block.
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.