@@ -549,6 +549,11 @@ export class Block implements BlockParams, Iterable<string> {
549549 */
550550 readonly receiptsRoot ! : null | string ;
551551
552+ /**
553+ * The hash of the transactions.
554+ */
555+ readonly transactionsRoot ! : null | string ;
556+
552557 /**
553558 * The total amount of blob gas consumed by the transactions
554559 * within the block. See [[link-eip-4844]].
@@ -630,6 +635,7 @@ export class Block implements BlockParams, Iterable<string> {
630635
631636 stateRoot : block . stateRoot ,
632637 receiptsRoot : block . receiptsRoot ,
638+ transactionsRoot : block . transactionsRoot ,
633639 } ) ;
634640 }
635641
@@ -673,7 +679,7 @@ export class Block implements BlockParams, Iterable<string> {
673679 const {
674680 baseFeePerGas, difficulty, extraData, gasLimit, gasUsed, hash,
675681 miner, prevRandao, nonce, number, parentHash, parentBeaconBlockRoot,
676- stateRoot, receiptsRoot, timestamp, transactions
682+ stateRoot, receiptsRoot, transactionsRoot , timestamp, transactions
677683 } = this ;
678684
679685 return {
@@ -686,7 +692,7 @@ export class Block implements BlockParams, Iterable<string> {
686692 blobGasUsed : toJson ( this . blobGasUsed ) ,
687693 excessBlobGas : toJson ( this . excessBlobGas ) ,
688694 hash, miner, prevRandao, nonce, number, parentHash, timestamp,
689- parentBeaconBlockRoot, stateRoot, receiptsRoot,
695+ parentBeaconBlockRoot, stateRoot, receiptsRoot, transactionsRoot ,
690696 transactions,
691697 } ;
692698 }
0 commit comments