booklearner / gas-tracker

⛽ Tiny API and CLI utility to get gas prices on the Ethereum network

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gas-tracker

Tiny API and CLI utility to get gas prices on the Ethereum network

Ethereum

Usage

Use make to fetch dependencies and build the application.

; make deps
; make build
; ./gas-tracker

Run the CLI (via go run):

; make run

Run the server locally:

; make server

Fetch dependencies and build the application without using make:

; go mod download all  # fetch dependencies
; go build -o gas-tracker cmd/cli.go

Run the CLI to fetch some numbers from the Ethereum network:

; ./gas-tracker gas
Block Number: 15398157
Gas Price:    13 gwei
Pending TXs:  261

About

⛽ Tiny API and CLI utility to get gas prices on the Ethereum network

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Go 93.6%Language:Makefile 6.4%