Skip to content

executionPayloadFromBeaconPayload

executionPayloadFromBeaconPayload(payload): ExecutionPayload

Converts a beacon block execution payload JSON object BeaconPayloadJson to the ExecutionPayload data needed to construct a Block. The JSON data can be retrieved from a consensus layer (CL) client on this Beacon API /eth/v2/beacon/blocks/[block number]

Parameters

payload: BeaconPayloadJson

Returns

ExecutionPayload

Defined in

packages/block/src/from-beacon-payload.ts:93