@@ -203,7 +203,7 @@ export interface TransactionRequest {
203203 /**
204204 * When using ``call`` or ``estimateGas``, this allows a specific
205205 * block to be queried. Many backends do not support this and when
206- * unsupported errors are silently squelched and ``"latest"`` is used.
206+ * unsupported errors are silently squelched and ``"latest"`` is used.
207207 */
208208 blockTag ?: BlockTag ;
209209
@@ -349,7 +349,7 @@ export interface PreparedTransactionRequest {
349349 /**
350350 * When using ``call`` or ``estimateGas``, this allows a specific
351351 * block to be queried. Many backends do not support this and when
352- * unsupported errors are silently squelched and ``"latest"`` is used.
352+ * unsupported errors are silently squelched and ``"latest"`` is used.
353353 */
354354 blockTag ?: BlockTag ;
355355
@@ -829,6 +829,12 @@ export class Log implements LogParams {
829829 */
830830 readonly blockNumber ! : number ;
831831
832+ /**
833+ * The timestamp of the block that included the transaction for this
834+ * log.
835+ */
836+ readonly blockTimestamp ?: number ;
837+
832838 /**
833839 * If the **Log** represents a block that was removed due to an orphaned
834840 * block, this will be true.
@@ -878,6 +884,7 @@ export class Log implements LogParams {
878884 transactionHash : log . transactionHash ,
879885 blockHash : log . blockHash ,
880886 blockNumber : log . blockNumber ,
887+ blockTimestamp : log . blockTimestamp ,
881888
882889 removed : log . removed ,
883890
@@ -896,13 +903,13 @@ export class Log implements LogParams {
896903 */
897904 toJSON ( ) : any {
898905 const {
899- address, blockHash, blockNumber, data, index,
906+ address, blockHash, blockNumber, blockTimestamp , data, index,
900907 removed, topics, transactionHash, transactionIndex
901908 } = this ;
902909
903910 return {
904911 _type : "log" ,
905- address, blockHash, blockNumber, data, index,
912+ address, blockHash, blockNumber, blockTimestamp , data, index,
906913 removed, topics, transactionHash, transactionIndex
907914 } ;
908915 }
@@ -1134,14 +1141,14 @@ export class TransactionReceipt implements TransactionReceiptParams, Iterable<Lo
11341141 const {
11351142 to, from, contractAddress, hash, index,
11361143 blockHash, blockNumber, logsBloom,
1137- logs, //byzantium,
1144+ logs, //byzantium,
11381145 status, root
11391146 } = this ;
11401147
11411148 return {
11421149 _type : "TransactionReceipt" ,
11431150 blockHash, blockNumber,
1144- //byzantium,
1151+ //byzantium,
11451152 contractAddress,
11461153 cumulativeGasUsed : toJson ( this . cumulativeGasUsed ) ,
11471154 from,
0 commit comments