reth::builder::payload

Trait PayloadAttributesBuilder

pub trait PayloadAttributesBuilder<Attributes>:
    Send
    + Sync
    + 'static {
    // Required method
    fn build(&self, timestamp: u64) -> Attributes;
}
Expand description

A builder that can return the current payload attribute.

Required Methods§

fn build(&self, timestamp: u64) -> Attributes

Return a new payload attribute from the builder.

Implementations on Foreign Types§

Source§

impl<ChainSpec> PayloadAttributesBuilder<PayloadAttributes> for LocalPayloadAttributesBuilder<ChainSpec>
where ChainSpec: Send + Sync + EthereumHardforks + 'static,

Source§

fn build(&self, timestamp: u64) -> PayloadAttributes

Source§

impl<ChainSpec> PayloadAttributesBuilder<OpPayloadAttributes> for LocalPayloadAttributesBuilder<ChainSpec>
where ChainSpec: Send + Sync + EthereumHardforks + 'static,

Available on crate feature optimism only.
Source§

fn build(&self, timestamp: u64) -> OpPayloadAttributes

Implementors§