Skip to main content

Module primitives

Module primitives 

Source
Expand description

Re-exported primitives.

Modules§

account
Minimal account
block
Block abstraction.
constants
Common constants. Ethereum protocol-related constants
crypto
Crypto utilities.
dashmapdashmap
Re-exports of dashmap types with alloy_primitives::map::DefaultHashBuilder as the hasher.
header
Common header types
node
Node traits
proofs
Helper function for calculating Merkle proofs and hashes.
rayonrayon
Rayon utilities Rayon parallel iterator utilities.
receipt
Receipt abstraction
size
Heuristic size trait
sync
Lock synchronization primitives
test_utilsarbitrary or test-utils
Utilities for testing.
transaction
Transaction abstraction

Structs§

Account
An Ethereum account.
Bytecode
Bytecode for an account.
EthPrimitives
Helper struct that specifies the ethereum NodePrimitives types.
EthereumReceipt
Typed ethereum transaction receipt. Receipt containing result of transaction execution.
FastInstant
A point-in-time wall-clock measurement.
GotExpected
A pair of values, one of which is expected and one of which is actual.
GotExpectedBoxed
A pair of values, one of which is expected and one of which is actual.
Header
Ethereum Block header
IndexedTx
Transaction with its index and block reference for efficient metadata access.
Log
A log consists of an address, and some log data.
LogData
An Ethereum event log object.
ReceiptWithBloom
Receipt with calculated bloom filter.
Recovered
Signed object with recovered signer.
RecoveredBlock
A block with senders recovered from the block’s transactions.
SealedBlock
Sealed full block composed of the block’s header and body.
SealedHeader
Seals the header with the block hash.
StorageEntry
Account storage entry.
TransactionMeta
Additional fields in the context of a block that contains this mined transaction.
WithEncoded
Generic wrapper with encoded Bytes, such as transaction data.

Enums§

Extended
An enum that combines two different transaction types.
TxType
Transaction types supported by [EthereumTxEnvelope].

Traits§

AlloyBlockHeader
Trait for extracting specific Ethereum block data from a header
BlockHeader
Abstraction of a block header.
FillTxEnv
Loads transaction into execution environment.
FullBlock
Helper trait that unifies all behaviour required by block to support full node operations.
FullBlockBody
Helper trait that unifies all behaviour required by transaction to support full node operations.
FullBlockHeader
Helper trait that unifies all behaviour required by block header to support full node operations.
FullReceipt
Helper trait that unifies all behaviour required by receipt to support full node operations.
FullSignedTx
Helper trait that unifies all behaviour required by block to support full node operations.
FullTransaction
Helper trait that unifies all behaviour required by transaction to support full node operations.
InMemorySize
Trait for calculating a heuristic for the in-memory size of a struct.
MaybeCompactreth-codec
Helper trait that requires database encoding implementation since reth-codec feature is enabled.
MaybeSerdeserde
Helper trait that requires de-/serialize implementation since serde feature is enabled.
MaybeSerdeBincodeCompatserde-bincode-compat
Helper trait that requires serde bincode compatibility implementation.
NodePrimitives
Configures all the primitive types of the node.
ParallelBridgeBuffered
Extension trait for iterators to convert them to parallel iterators via collection.
SignedTransaction
A signed transaction.
SignerRecoverable
A type that can recover the signer of a transaction.
ValueWithSubKey
Trait for DupSort table values that contain a subkey.

Functions§

calculate_receipt_root_no_memo
Calculates the receipt root for a header for the reference type of Receipt.
format_gas
Returns a formatted gas log, showing either:
format_gas_throughput
Returns a formatted gas throughput log, showing either:
logs_bloom
Compute the logs bloom filter for the given logs.

Type Aliases§

BlockTy
Helper adapter type for accessing NodePrimitives block types.
BodyTy
Helper adapter type for accessing NodePrimitives block body types.
HeaderTy
Helper adapter type for accessing NodePrimitives block header types.
PooledTransaction
All possible transactions that can be included in a response to GetPooledTransactions. A response to GetPooledTransactions. This can include either a blob transaction, or a non-4844 signed transaction.
PooledTransactionVariant
A type alias for PooledTransaction that’s also generic over blob sidecar.
ReceiptTy
Helper adapter type for accessing NodePrimitives receipt types.
RpcReceiptrpc
Receipt representation for RPC.
SealedHeaderFor
Type alias for SealedHeader generic over the BlockHeader type of NodePrimitives.
TransactionSigned
Signed transaction.