github.com/lnsp/npapi
Package npapi provides a lightweight wrapper for the Nanopool Ethereum API. See https://eth.nanopool.org/api for more information.
Readme
A lightweight Go wrapper for the Nanopool Ethereum API.
package main
import (
"fmt"
"github.com/lnsp/npapi"
)
func main() {
if len(os.Args) != 2 {
fmt.Fprintln(os.Stderr, "USAGE: go run main.go [nanopool account address]")
return
}
balance, err := npapi.Balance(os.Args[1])
if err != nil {
fmt.Fprintf(os.Stderr, "failed to fetch balance: %v\n", err)
return
}
fmt.Printf("You have earned %.6f ETH.\n", balance)
}
FAQs
Package npapi provides a lightweight wrapper for the Nanopool Ethereum API. See https://eth.nanopool.org/api for more information.
We found that github.com/lnsp/npapi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.