⛽ 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
}