pub(crate) async fn call_new_payload<N: Network, P: Provider<N>>(
provider: P,
version: EngineApiMessageVersion,
params: Value,
) -> TransportResult<()>
Expand description
Calls the correct engine_newPayload
method depending on the given [ExecutionPayload
] and its
versioned variant. Returns the [EngineApiMessageVersion
] depending on the payload’s version.
§Panics
If the given payload is a V3 payload, but a parent beacon block root is provided as None
.