Skip to content

shark0der/next-block-base-fee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Next block base fee

I'll build my own gas price oracle, with blackjack, and hookers!

The main purpose of the script is to listen for new blocks and display the latest base fee and the base fee of the next (pending) block.

Example output:

screenshot

Displayed info:

  • block number
  • block hash
  • gas used percentage (out of 30m gas)
  • gas used
  • block full (all dots = 30m gas used)
  • block base fee
  • next (pending) block base fee, green if lower than current, red if higher than current

Usage

npm i
PROVIDER_URL=http://your-provider-url npm start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published