@ethereumjs/block
- BlockData
- BlockOptions
- HeaderData
- JsonBlock
- JsonHeader
- JsonRpcBlock
- VerkleExecutionWitness
- VerkleProof
- VerkleStateDiff
- BlockBodyBytes
- BlockBytes
- BlockHeaderBytes
- ExecutionPayload
- ExecutionWitnessBytes
- TransactionsBytes
- UncleHeadersBytes
- WithdrawalV1
- WithdrawalsBytes
Ƭ BlockBodyBytes: [TransactionsBytes
, UncleHeadersBytes
, WithdrawalsBytes?]
Ƭ BlockBytes: [BlockHeaderBytes
, TransactionsBytes
, UncleHeadersBytes
] | [BlockHeaderBytes
, TransactionsBytes
, UncleHeadersBytes
, WithdrawalsBytes
] | [BlockHeaderBytes
, TransactionsBytes
, UncleHeadersBytes
, WithdrawalsBytes
, ExecutionWitnessBytes
]
Ƭ BlockHeaderBytes: Uint8Array
[]
BlockHeaderBuffer is a Buffer array, except for the Verkle PreState which is an array of prestate arrays.
Ƭ ExecutionPayload: Object
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 [] |
Ƭ ExecutionWitnessBytes: Uint8Array
Ƭ TransactionsBytes: Uint8Array
[][] | Uint8Array
[]
TransactionsBytes can be an array of serialized txs for Typed Transactions or an array of Uint8Array Arrays for legacy transactions.
Ƭ UncleHeadersBytes: Uint8Array
[][]
Ƭ WithdrawalV1: Object
Name | Type |
---|---|
address |
PrefixedHexString |
amount |
PrefixedHexString |
index |
PrefixedHexString |
validatorIndex |
PrefixedHexString |
Ƭ WithdrawalsBytes: WithdrawalBytes
[]
▸ 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]
Name | Type |
---|---|
payload |
BeaconPayloadJson |