{"id":18074964,"url":"https://github.com/lnsp/npapi","last_synced_at":"2025-04-05T19:19:05.773Z","repository":{"id":57563934,"uuid":"100209164","full_name":"lnsp/npapi","owner":"lnsp","description":"Lightweight Go wrapper for the Nanopool Ethereum API.","archived":false,"fork":false,"pushed_at":"2017-12-01T22:29:21.000Z","size":16,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-11T16:41:47.338Z","etag":null,"topics":["ethereum","go","nanopool","nanopool-ethereum-api","wrapper"],"latest_commit_sha":null,"homepage":"https://godoc.org/github.com/lnsp/npapi","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lnsp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-13T22:48:24.000Z","updated_at":"2021-04-07T22:25:54.000Z","dependencies_parsed_at":"2022-09-16T13:30:39.396Z","dependency_job_id":null,"html_url":"https://github.com/lnsp/npapi","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnsp%2Fnpapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnsp%2Fnpapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnsp%2Fnpapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnsp%2Fnpapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lnsp","download_url":"https://codeload.github.com/lnsp/npapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247386363,"owners_count":20930631,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ethereum","go","nanopool","nanopool-ethereum-api","wrapper"],"created_at":"2024-10-31T10:43:58.462Z","updated_at":"2025-04-05T19:19:05.757Z","avatar_url":"https://github.com/lnsp.png","language":"Go","readme":"# npapi [![GoDoc](https://godoc.org/github.com/lnsp/npapi?status.svg)](https://godoc.org/github.com/lnsp/npapi)\n\nA lightweight Go wrapper for the Nanopool Ethereum API.\n\n## Example\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/lnsp/npapi\"\n)\n\nfunc main() {\n\tif len(os.Args) != 2 {\n\t\tfmt.Fprintln(os.Stderr, \"USAGE: go run main.go [nanopool account address]\")\n\t\treturn\n\t}\n\tbalance, err := npapi.Balance(os.Args[1])\n\tif err != nil {\n\t\tfmt.Fprintf(os.Stderr, \"failed to fetch balance: %v\\n\", err)\n\t\treturn\n\t}\n\tfmt.Printf(\"You have earned %.6f ETH.\\n\", balance)\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnsp%2Fnpapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flnsp%2Fnpapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnsp%2Fnpapi/lists"}