Huge news!Announcing our $20M Series A led by Andreessen Horowitz.Learn more
Socket
Socket
Log inDemoInstall

github.com/lnsp/npapi

Package Overview
Dependencies
0
Maintainers
0
Issues
File Explorer

github.com/lnsp/npapi

Package npapi provides a lightweight wrapper for the Nanopool Ethereum API. See https://eth.nanopool.org/api for more information.

    v0.0.0-20171201222914-7beb8a168f80

Version published
Maintainers
0

Readme

npapi GoDoc

A lightweight Go wrapper for the Nanopool Ethereum API.

Example

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

Last updated on 01 Dec 2017

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.

Install
SocketSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc