Skip to content

go-ethermine is an unofficial golang client for Ethermines generic pool API

License

Notifications You must be signed in to change notification settings

thelolagemann/go-ethermine

Repository files navigation

go-ethermine

GoDoc reference GitHub GitHub go.mod Go version

An unoffical golang client for ethermine and their generic pool API.

Getting started

Install

go get -u github.com/thelolagemann/go-ethermine

Example usage

...
// pool interaction
stats, err := Ethermine.Stats()
if err != nil {
    // handle err...
}
fmt.Printf("Ethermine is mining $%.2f an hour!", (stats.PoolStats.BlocksPerHour*5)*stats.Price.USD)
// Output: Ethermine is mining $430049.51 an hour!
...
// miner interaction
miner := Ethermine.Miner("ADDRESS")
stats, err := miner.Stats()
if err != nil {
    // handle err
}
fmt.Printf("Unpaid balance: %v", stats.Unpaid)
...
// worker interaction
worker := miner.Worker("MINER_NAME")
stats, err := worker.Stats()
if err !=- nil {
    // handle err`
}
fmt.Printf("Worker hashrate: %v", stats.CurrentHashrate)

View the godocs for more detailed documentation.

About

go-ethermine is an unofficial golang client for Ethermines generic pool API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages