Skip to content

Commit

Permalink
add Goerli
Browse files Browse the repository at this point in the history
Signed-off-by: Krasi Georgiev <8903888+krasi-georgiev@users.noreply.github.com>
  • Loading branch information
krasi-georgiev committed Aug 19, 2021
1 parent 3499a85 commit d2f683c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
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
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
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)
}
}

0 comments on commit d2f683c

Please sign in to comment.