Tiny API and CLI utility to get gas prices on the Ethereum network
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