Giter Club home page Giter Club logo

eip-1559-gas-prices's Introduction

EIP-1559 Gas Estimator Tutorial

download (2)

In this repository, you will find the code related to the Chainlink - Calculate EIP-1559 Gas Fees presentation.

Feel free to fork and play with it, and if you find any error, or there's something you think it should be modified send us a push request!

If you're interested in learning more, or have feedback, suggestions, or questions, reach me out on Twitter!

What is This?

A Gas price estimator based on the EIP-1559 or London Fork. It uses web sockets to retrieve latest estimated Gas prices based on historical 50th priority fees percentile, and current pending block Base fees.

Ream more about the EIP-1559 here.

How To Run

  • Clone the repository

  • Grab your Infura Key: chainlink_price_estimator

  • Substitute your Infura Key in:

// app.js

const web3 = new Web3("CHANGE WITH YOUR WEBSOCKET URI");

  • Install the dependencies with:
yarn install || npm install
  • Run the app:
node app.js

Wait a couple of seconds and you should see the estimate appearing in your terminal: eip-price-estimator-log

Note: It might take up to a minute for the websocket to connect and start logging Gas prices. GIF is x10 speed.

eip-1559-gas-prices's People

Contributors

eversmile12 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.