Skip to content

Latest commit

 

History

History
188 lines (117 loc) · 5.63 KB

README.md

File metadata and controls

188 lines (117 loc) · 5.63 KB

@ethereumjs/block

@ethereumjs/block

Table of contents

Classes

Interfaces

Type Aliases

Functions

Type Aliases

BlockBodyBytes

Ƭ BlockBodyBytes: [TransactionsBytes, UncleHeadersBytes, WithdrawalsBytes?]

Defined in

types.ts:174


BlockBytes

Ƭ BlockBytes: [BlockHeaderBytes, TransactionsBytes, UncleHeadersBytes] | [BlockHeaderBytes, TransactionsBytes, UncleHeadersBytes, WithdrawalsBytes] | [BlockHeaderBytes, TransactionsBytes, UncleHeadersBytes, WithdrawalsBytes, ExecutionWitnessBytes]

Defined in

types.ts:159


BlockHeaderBytes

Ƭ BlockHeaderBytes: Uint8Array[]

BlockHeaderBuffer is a Buffer array, except for the Verkle PreState which is an array of prestate arrays.

Defined in

types.ts:173


ExecutionPayload

Ƭ ExecutionPayload: Object

Type declaration

Name Type
baseFeePerGas PrefixedHexString
blobGasUsed? PrefixedHexString
blockHash PrefixedHexString
blockNumber PrefixedHexString
excessBlobGas? PrefixedHexString
executionWitness? VerkleExecutionWitness | null
extraData PrefixedHexString
feeRecipient PrefixedHexString
gasLimit PrefixedHexString
gasUsed PrefixedHexString
logsBloom PrefixedHexString
parentBeaconBlockRoot? PrefixedHexString
parentHash PrefixedHexString
prevRandao PrefixedHexString
receiptsRoot PrefixedHexString
stateRoot PrefixedHexString
timestamp PrefixedHexString
transactions PrefixedHexString[]
withdrawals? WithdrawalV1[]

Defined in

types.ts:263


ExecutionWitnessBytes

Ƭ ExecutionWitnessBytes: Uint8Array

Defined in

types.ts:157


TransactionsBytes

Ƭ TransactionsBytes: Uint8Array[][] | Uint8Array[]

TransactionsBytes can be an array of serialized txs for Typed Transactions or an array of Uint8Array Arrays for legacy transactions.

Defined in

types.ts:178


UncleHeadersBytes

Ƭ UncleHeadersBytes: Uint8Array[][]

Defined in

types.ts:179


WithdrawalV1

Ƭ WithdrawalV1: Object

Type declaration

Name Type
address PrefixedHexString
amount PrefixedHexString
index PrefixedHexString
validatorIndex PrefixedHexString

Defined in

types.ts:255


WithdrawalsBytes

Ƭ WithdrawalsBytes: WithdrawalBytes[]

Defined in

types.ts:156

Functions

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

Name Type
payload BeaconPayloadJson

Returns

ExecutionPayload

Defined in

from-beacon-payload.ts:41