reth_node_builder

Trait BuiltPayload

pub trait BuiltPayload:
    Send
    + Sync
    + Debug {
    // Required methods
    fn block(&self) -> &SealedBlock;
    fn fees(&self) -> Uint<256, 4>;
    fn requests(&self) -> Option<Requests>;

    // Provided method
    fn executed_block(&self) -> Option<ExecutedBlock> { ... }
}
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

Returns the built block (sealed)

fn fees(&self) -> Uint<256, 4>

Returns the fees collected for the built block

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

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

Provided Methods§

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

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

Implementations on Foreign Types§

Source§

impl BuiltPayload for &EthBuiltPayload

Source§

fn block(&self) -> &SealedBlock

Source§

fn fees(&self) -> Uint<256, 4>

Source§

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

Source§

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

Source§

impl BuiltPayload for EthBuiltPayload

Source§

fn block(&self) -> &SealedBlock

Source§

fn fees(&self) -> Uint<256, 4>

Source§

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

Source§

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

Implementors§