Print base fee by watcher script

This commit is contained in:
POA 2022-02-09 16:37:32 +03:00
parent 7f30b5e012
commit 4ee7eb69d8
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ async function onNewBlock(blockNumber) {
console.log(` Gas used: ${block.gasUsed} [${block.transactions.length} txs]`);
console.log(` Gas limit: ${block.gasLimit}`);
console.log(` Validator: ${block.miner}`);
console.log(` Base Fee: ${web3.utils.hexToNumber(block.baseFeePerGas)}`);
if (prevBlock) {
console.log(` Timestamp delta from prevBlock: ${block.timestamp - prevBlock.timestamp}`);
}