reth_payload_primitives

Trait BuiltPayload

Source
pub trait BuiltPayload<N: NodePrimitives = EthPrimitives>:
    Send
    + Sync
    + Debug {
    // Required methods
    fn block(&self) -> &SealedBlock<N::BlockHeader, N::BlockBody>;
    fn fees(&self) -> U256;
    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§

Source

fn block(&self) -> &SealedBlock<N::BlockHeader, N::BlockBody>

Returns the built block (sealed)

Source

fn fees(&self) -> U256

Returns the fees collected for the built block

Source

fn requests(&self) -> Option<Requests>

Returns the EIP-7865 requests for the payload if any.

Provided Methods§

Source

fn executed_block(&self) -> Option<ExecutedBlock<N>>

Returns the entire execution data for the built block, if available.

Implementors§