Trait BuiltPayload
pub trait BuiltPayload<N = EthPrimitives>:
Send
+ Sync
+ Debugwhere
N: NodePrimitives,{
// Required methods
fn block(
&self,
) -> &SealedBlock<<N as NodePrimitives>::BlockHeader, <N as NodePrimitives>::BlockBody>;
fn fees(&self) -> Uint<256, 4>;
fn requests(&self) -> Option<Requests>;
// Provided method
fn executed_block(&self) -> Option<ExecutedBlock<N>> { ... }
}
Expand description
Represents a built payload type that contains a built [SealedBlock
] and can be converted into
engine API execution payloads.
Required Methods§
fn block(
&self,
) -> &SealedBlock<<N as NodePrimitives>::BlockHeader, <N as NodePrimitives>::BlockBody>
fn block( &self, ) -> &SealedBlock<<N as NodePrimitives>::BlockHeader, <N as NodePrimitives>::BlockBody>
Returns the built block (sealed)
fn fees(&self) -> Uint<256, 4>
fn fees(&self) -> Uint<256, 4>
Returns the fees collected for the built block
Provided Methods§
fn executed_block(&self) -> Option<ExecutedBlock<N>>
fn executed_block(&self) -> Option<ExecutedBlock<N>>
Returns the entire execution data for the built block, if available.