Skip to content

add Goerli #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![GoDoc](https://godoc.org/github.com/nanmu42/etherscan-api?status.svg)](https://godoc.org/github.com/nanmu42/etherscan-api)
[中文文档](https://github.com/nanmu42/etherscan-api/blob/master/README_ZH.md)

Go bindings to the Etherscan.io API(and its families like BscScan), with nearly Full implementation(accounts, transactions, tokens, contracts, blocks, stats), full network support(Mainnet, Ropsten, Kovan, Rinkby, Tobalaba), and only depending on standard library. :wink:
Go bindings to the Etherscan.io API(and its families like BscScan), with nearly Full implementation(accounts, transactions, tokens, contracts, blocks, stats), full network support(Mainnet, Ropsten, Kovan, Rinkby, Goerli, Tobalaba), and only depending on standard library. :wink:

# Usage

Expand Down
2 changes: 1 addition & 1 deletion README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Etherscan.io的Golang实现,
支持几乎所有功能(accounts, transactions, tokens, contracts, blocks, stats),
所有公共网络(Mainnet, Ropsten, Kovan, Rinkby, Tobalaba)。
所有公共网络(Mainnet, Ropsten, Kovan, Rinkby, Goerli, Tobalaba)。
本项目只依赖于官方库。 :wink:

# Usage
Expand Down
6 changes: 4 additions & 2 deletions network.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ const (
Kovan Network = "api-kovan"
// Rinkby Testnet(CLIQUE)
Rinkby Network = "api-rinkeby"
// Goerli Testnet(CLIQUE)
Goerli Network = "api-goerli"
// Tobalaba Testnet
Tobalaba Network = "api-tobalaba"
)
Expand All @@ -27,6 +29,6 @@ type Network string

// SubDomain returns the subdomain of etherscan API
// via n provided.
func (n Network) SubDomain() (sub string) {
func (n Network) SubDomain() (sub string) {
return string(n)
}
}