Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 906 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 906 Bytes

go-mpos

GoDoc reference GitHub GitHub go.mod Go version

An unofficial PHP-MPOS API Client for go.

Getting started

Install

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

Example usage

import "github.com/thelolagemann/go-mpos"

// create a new pool instance
pool := NewMiningPoolHub("API_KEY", "BASE_URL")

// get pool info
info, err := pool.PoolInfo()
if err != nil {
    // handle err
}
fmt.Printf("Pool is mining %v, with a %v%% fee\n", info.Coinname, info.Fees)