ethereumjs-monorepo

@ethereumjs/block


@ethereumjs/block / createBlockFromBeaconPayloadJSON

Function: createBlockFromBeaconPayloadJSON()

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

Defined in: block/constructors.ts:396

Method to retrieve a block from a beacon payload JSON

Parameters

payload

BeaconPayloadJSON

JSON of a beacon beacon fetched from beacon apis

opts?

BlockOptions

BlockOptions

Returns

Promise<Block>

the block constructed block