Go client for ETH Gas Station.
go get github.com/osmian/gasstation-go
The client requires an API Key from Defi Pulse Data.
apiKey := "<API_KEY>"
client := gasstation.NewGasStationClient(apiKey)
gasPrice, err := client.GetGasPrice()
if err != nil {
return err
}
predictions, err := client.GetPredictionTable()
if err != nil {
return err
}