pub trait BuiltPayload:
Send
+ Sync
+ Debug {
type Primitives: NodePrimitives;
// Required methods
fn block(&self) -> &SealedBlock<<Self::Primitives as NodePrimitives>::Block>;
fn fees(&self) -> U256;
fn requests(&self) -> Option<Requests>;
// Provided methods
fn block_access_list(&self) -> Option<&Bytes> { ... }
fn executed_block(
&self,
) -> Option<BuiltPayloadExecutedBlock<Self::Primitives>> { ... }
}Expand description
Represents a successfully built execution payload (block).
Provides access to the underlying block data, execution results, and associated metadata for payloads ready for execution or propagation.
Required Associated Types§
Sourcetype Primitives: NodePrimitives
type Primitives: NodePrimitives
The node’s primitive types
Required Methods§
Sourcefn block(&self) -> &SealedBlock<<Self::Primitives as NodePrimitives>::Block>
fn block(&self) -> &SealedBlock<<Self::Primitives as NodePrimitives>::Block>
Returns the built block in its sealed (hash-verified) form.
Provided Methods§
Sourcefn block_access_list(&self) -> Option<&Bytes>
fn block_access_list(&self) -> Option<&Bytes>
Returns the EIP-7928 block access list included in this payload.
Returns None for payloads that do not carry a block access list.
Sourcefn executed_block(&self) -> Option<BuiltPayloadExecutedBlock<Self::Primitives>>
fn executed_block(&self) -> Option<BuiltPayloadExecutedBlock<Self::Primitives>>
Returns the complete execution result including state updates.
Returns None if execution data is not available or not tracked.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".