MCPcopy Create free account
hub / github.com/base/base / new_payload

Method new_payload

crates/execution/runner/src/test_utils/engine.rs:153–169  ·  view source on GitHub ↗

Submit a new payload to the Engine API

(
        &self,
        payload: BaseExecutionPayloadV4,
        versioned_hashes: Vec<B256>,
        parent_beacon_block_root: B256,
        execution_requests: Requests,
    )

Source from the content-addressed store, hash-verified

151
152 /// Submit a new payload to the Engine API
153 pub async fn new_payload(
154 &self,
155 payload: BaseExecutionPayloadV4,
156 versioned_hashes: Vec<B256>,
157 parent_beacon_block_root: B256,
158 execution_requests: Requests,
159 ) -> eyre::Result<PayloadStatus> {
160 debug!(timestamp = %chrono::Utc::now(), "Submitting new payload");
161 Ok(BaseEngineApiClient::<BaseEngineTypes>::new_payload_v4(
162 &self.client().await,
163 payload,
164 versioned_hashes,
165 parent_beacon_block_root,
166 execution_requests,
167 )
168 .await?)
169 }
170
171 /// Update forkchoice on the Engine API
172 pub async fn update_forkchoice(

Callers 1

prepare_unsafe_blockMethod · 0.45

Calls 1

clientMethod · 0.45

Tested by

no test coverage detected