ethereumjs-monorepo

@ethereumjs/block


@ethereumjs/block / createBlockFromBeaconPayloadJSON

Function: createBlockFromBeaconPayloadJSON()

createBlockFromBeaconPayloadJSON(payload, opts?): Promise<Block>

Defined in: block/constructors.ts:370

Method to retrieve a block from a beacon payload JSON

Parameters

payload

BeaconPayloadJSON

JSON of a beacon block fetched from beacon APIs

opts?

BlockOptions

BlockOptions

Returns

Promise<Block>

The constructed Block object