Skip to content

Latest commit

 

History

History
171 lines (106 loc) · 4.75 KB

README.md

File metadata and controls

171 lines (106 loc) · 4.75 KB

@ethereumjs/block

@ethereumjs/block

Table of contents

Classes

Interfaces

Type Aliases

Functions

Type Aliases

BlockBodyBytes

Ƭ BlockBodyBytes: [TransactionsBytes, UncleHeadersBytes, WithdrawalsBytes?]

Defined in

types.ts:119


BlockBytes

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

Defined in

types.ts:115


BlockHeaderBytes

Ƭ BlockHeaderBytes: Uint8Array[]

Defined in

types.ts:118


ExecutionPayload

Ƭ ExecutionPayload: Object

Type declaration

Name Type
baseFeePerGas PrefixedHexString
blobGasUsed? PrefixedHexString
blockHash PrefixedHexString
blockNumber PrefixedHexString
excessBlobGas? PrefixedHexString
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:206


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:123


UncleHeadersBytes

Ƭ UncleHeadersBytes: Uint8Array[][]

Defined in

types.ts:124


WithdrawalV1

Ƭ WithdrawalV1: Object

Type declaration

Name Type
address PrefixedHexString
amount PrefixedHexString
index PrefixedHexString
validatorIndex PrefixedHexString

Defined in

types.ts:198


WithdrawalsBytes

Ƭ WithdrawalsBytes: WithdrawalBytes[]

Defined in

types.ts:113

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:39