reth_ethereum_payload_builder

Function default_ethereum_payload

Source
pub fn default_ethereum_payload<EvmConfig, Pool, Client, F>(
    evm_config: EvmConfig,
    args: BuildArguments<Pool, Client, EthPayloadBuilderAttributes, EthBuiltPayload>,
    initialized_cfg: CfgEnvWithHandlerCfg,
    initialized_block_env: BlockEnv,
    best_txs: F,
) -> Result<BuildOutcome<EthBuiltPayload>, PayloadBuilderError>
where EvmConfig: ConfigureEvm<Header = Header>, Client: StateProviderFactory + ChainSpecProvider<ChainSpec = ChainSpec>, Pool: TransactionPool, F: FnOnce(BestTransactionsAttributes) -> Box<dyn BestTransactions<Item = Arc<ValidPoolTransaction<<Pool as TransactionPool>::Transaction>>>>,
Expand description

Constructs an Ethereum transaction payload using the best transactions from the pool.

Given build arguments including an Ethereum client, transaction pool, and configuration, this function creates a transaction payload. Returns a result indicating success with the payload or an error in case of failure.