Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gravityblast/etherscan-go
etherscan.io API client in Go
https://github.com/gravityblast/etherscan-go
ethereum etherscan etherscan-api etherscan-io go golang
Last synced: about 9 hours ago
JSON representation
etherscan.io API client in Go
- Host: GitHub
- URL: https://github.com/gravityblast/etherscan-go
- Owner: gravityblast
- License: mit
- Created: 2019-02-20T22:50:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-02-20T22:55:40.000Z (over 5 years ago)
- Last Synced: 2024-06-21T18:48:12.404Z (5 months ago)
- Topics: ethereum, etherscan, etherscan-api, etherscan-io, go, golang
- Language: Go
- Size: 4.88 KB
- Stars: 4
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# etherscan-go
etherscan.io API client in Go```go
// main.gopackage main
import (
"fmt"
"log""github.com/gravityblast/etherscan"
)func checkErr(err error) {
if err != nil {
log.Fatal(err)
}
}func main() {
c, err := etherscan.NewClient(etherscan.Mainnet, "YOUR_API_KEY")
checkErr(err)resp, err := c.Account("0x0000000000000000000000000000000000000000")
checkErr(err)fmt.Printf("%+v\n", resp)
}
``````bash
go run main.go
&{Status:1 Message:OK Result:+7641879211751631214533}
```