package
5.6.3-darwinv2-rc0+incompatible
Repository: https://github.com/scroll-tech/go-ethereum.git
Documentation: pkg.go.dev

# Functions

GetBlock retrieves an entire block corresponding to the hash, assembling it back from the stored header and body.
GetBlockLogs retrieves the logs generated by the transactions included in a block given by its hash.
GetBlockReceipts retrieves the receipts generated by the transactions included in a block given by its hash.
GetBloomBits retrieves a batch of compressed bloomBits vectors belonging to the given bit index and section indexes.
GetBloomTrieRoot reads the BloomTrie root assoctiated to the given section from the database.
GetBody retrieves the block body (transactions, uncles) corresponding to the hash.
GetBodyRLP retrieves the block body (transactions and uncles) in RLP encoding.
GetCanonicalHash retrieves the canonical block hash corresponding to the number.
GetChtRoot reads the CHT root associated to the given section from the database.
GetHeaderByNumber retrieves the canonical block header corresponding to the given number.
GetTd retrieves the total difficulty corresponding to the number and hash.
GetTransaction retrieves a canonical transaction by hash and also returns its position in the chain.
GetUntrustedBlockLogs retrieves the logs generated by the transactions included in a block.
NewBloomTrieIndexer creates a BloomTrie chain indexer.
NewChtIndexer creates a Cht chain indexer.
NewLightChain returns a fully initialised light chain using information available in the database.
NewNodeSet creates an empty node set.
No description provided by the author
No description provided by the author
NewTxPool creates a new light transaction pool.
StateTrieID returns a TrieID for a state trie belonging to a certain block header.
StorageTrieID returns a TrieID for a contract storage trie at a given account of a given state trie.
StoreBloomTrieRoot writes the BloomTrie root assoctiated to the given section into the database.
StoreChtRoot writes the CHT root associated to the given section into the database.

# Variables

No description provided by the author
No description provided by the author
DefaultClientIndexerConfig wraps a set of configs as a default indexer config for client side.
DefaultServerIndexerConfig wraps a set of configs as a default indexer config for server side.
ErrNoPeers is returned if no peers capable of serving a queued request are available.
NoOdr is the default context passed to an ODR capable function when the ODR service is not required.
TestClientIndexerConfig wraps a set of configs as a test indexer config for client side.
TestServerIndexerConfig wraps a set of configs as a test indexer config for server side.

# Structs

BlockRequest is the ODR request type for retrieving block bodies.
BloomRequest is the ODR request type for retrieving bloom filters from a CHT structure.
BloomTrieIndexerBackend implements core.ChainIndexerBackend.
ChtIndexerBackend implements core.ChainIndexerBackend.
ChtNode structures are stored in the Canonical Hash Trie in an RLP encoded format.
ChtRequest is the ODR request type for retrieving header by Canonical Hash Trie.
CodeRequest is the ODR request type for retrieving contract code.
IndexerConfig includes a set of configs for chain indexers.
LightChain represents a canonical chain that by default only handles block headers, downloading block bodies and receipts on demand through an ODR interface.
NodeSet stores a set of trie nodes.
ReceiptsRequest is the ODR request type for retrieving receipts.
TrieID identifies a state or account storage trie.
TrieRequest is the ODR request type for state/storage trie entries.
TxPool implements the transaction pool for light clients, which keeps track of the status of locally created transactions, detecting if they are included in a block (mined) or rolled back.
TxStatus describes the status of a transaction.
TxStatusRequest is the ODR request type for retrieving transaction status.

# Interfaces

OdrBackend is an interface to a backend service that handles ODR retrievals type.
OdrRequest is an interface for retrieval requests.
TxRelayBackend provides an interface to the mechanism that forwards transacions to the ETH network.

# Type aliases

NodeList stores an ordered list of trie nodes.