PayloadAttributes in reth_node_api - Rust

Trait PayloadAttributes 

Source

pub trait PayloadAttributes:
    DeserializeOwned
    + Serialize
    + Debug
    + Clone
    + Send
    + Sync
    + 'static {
    // Required methods
    fn payload_id(&self, parent_hash: &FixedBytes<32>) -> PayloadId;
    fn timestamp(&self) -> u64;
    fn withdrawals(&self) -> Option<&Vec<Withdrawal>>;
    fn parent_beacon_block_root(&self) -> Option<FixedBytes<32>>;
}
Expand description

Basic attributes required to initiate payload construction.

Defines minimal parameters needed to build a new execution payload. Implementations must be serializable for transmission.

Source

Computes the unique identifier for this payload build job.

Source

Returns the timestamp for the new payload.

Source

Returns the withdrawals to be included in the payload.

Some for post-Shanghai blocks, None for earlier blocks.

Source

Returns the parent beacon block root.

Some for post-merge blocks, None for pre-merge blocks.

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Source§

Source§
Source§
Source§
Source§