Print base fee by watcher script
This commit is contained in:
parent
7f30b5e012
commit
4ee7eb69d8
|
@ -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}`);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue