Module payload
Expand description
Standalone Conversion Functions for Handling Different Versions of Execution Payloads in Ethereum’s Engine
Functions§
- Converts
SealedBlock
toExecutionPayload
- Converts
SealedBlock
toExecutionPayloadV1
- Converts
SealedBlock
toExecutionPayloadV2
- Converts
SealedBlock
toExecutionPayloadV3
, and returns the parent beacon block root. - Converts
SealedBlock
toExecutionPayloadFieldV2
- Converts
SealedBlock
toExecutionPayloadInputV2
- Converts
ExecutionPayloadFieldV2
toExecutionPayload
- Converts
ExecutionPayloadInputV2
toExecutionPayload
- Converts
ExecutionPayloadV2
toExecutionPayloadInputV2
. - Converts
Block
toExecutionPayloadBodyV1
- Transforms a
SealedBlock
into aExecutionPayloadV1
- Tries to create a new unsealed block from the given payload and payload sidecar.
- Tries to create a sealed new block from the given payload and payload sidecar.
- Converts
ExecutionPayloadV1
toBlock
- Converts
ExecutionPayloadV2
toBlock
- Converts
ExecutionPayloadV3
toBlock
- Takes the expected block hash and
Block
, validating the block and converting it into aSealedBlock
.