Skip to content

osmian/gasstation-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⛽ ETH Gas Station Go

Overview

Go client for ETH Gas Station.

Older Go versions

go get github.com/osmian/gasstation-go

Setup

The client requires an API Key from Defi Pulse Data.

Examples

Create Client

apiKey := "<API_KEY>"
client := gasstation.NewGasStationClient(apiKey)

Get Gas Price

gasPrice, err := client.GetGasPrice()
if err != nil {
    return err
}

Get PredictionTable

predictions, err := client.GetPredictionTable()
if err != nil {
    return err
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages