Trait PayloadBuilderConfig
pub trait PayloadBuilderConfig {
// Required methods
fn extra_data(&self) -> Cow<'_, str>;
fn interval(&self) -> Duration;
fn deadline(&self) -> Duration;
fn gas_limit(&self) -> Option<u64>;
fn max_payload_tasks(&self) -> usize;
fn max_blobs_per_block(&self) -> Option<u64>;
// Provided methods
fn extra_data_bytes(&self) -> Bytes { ... }
fn gas_limit_for(&self, chain: Chain) -> u64 { ... }
}Expand description
A trait that provides payload builder settings.
This provides all basic payload builder settings and is implemented by the
PayloadBuilderArgs type.
Required Methods§
fn extra_data(&self) -> Cow<'_, str>
fn extra_data(&self) -> Cow<'_, str>
Block extra data set by the payload builder.
fn interval(&self) -> Duration
fn interval(&self) -> Duration
The interval at which the job should build a new payload after the last.
fn max_payload_tasks(&self) -> usize
fn max_payload_tasks(&self) -> usize
Maximum number of tasks to spawn for building a payload.
fn max_blobs_per_block(&self) -> Option<u64>
fn max_blobs_per_block(&self) -> Option<u64>
Maximum number of blobs to include per block (EIP-7872).
If None, defaults to the protocol maximum.
Provided Methods§
fn extra_data_bytes(&self) -> Bytes
fn extra_data_bytes(&self) -> Bytes
Returns the extra data as bytes.
fn gas_limit_for(&self, chain: Chain) -> u64
fn gas_limit_for(&self, chain: Chain) -> u64
Returns the configured gas limit if set, or a chain-specific default.