pub async fn map_engine_requests(
req: &RpcRequest,
context: RpcApiContext,
) -> Result<Value, RpcErr>Expand description
Routes engine_* namespace requests to their handlers.
These are Engine API methods used by consensus clients (e.g., Lighthouse, Prysm) to communicate with the execution layer. All methods require JWT authentication.
Handles:
- Fork choice:
engine_forkchoiceUpdatedV1/V2/V3 - Payload submission:
engine_newPayloadV1/V2/V3/V4/V5,engine_newPayloadWithWitnessV5 - Payload retrieval:
engine_getPayloadV1/V2/V3/V4/V5/V6 - Payload bodies:
engine_getPayloadBodiesByHashV1,engine_getPayloadBodiesByRangeV1 - Blob retrieval:
engine_getBlobsV1/V2/V3 - Capabilities:
engine_exchangeCapabilities,engine_exchangeTransitionConfigurationV1