Skip to content

Commit d6a10b1

Browse files
authored
Merge pull request #27 from cryptoriums/master
add Goerli
2 parents 3499a85 + d2f683c commit d6a10b1

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![GoDoc](https://godoc.org/github.com/nanmu42/etherscan-api?status.svg)](https://godoc.org/github.com/nanmu42/etherscan-api)
77
[中文文档](https://github.com/nanmu42/etherscan-api/blob/master/README_ZH.md)
88

9-
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:
9+
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:
1010

1111
# Usage
1212

README_ZH.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

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

1414
# Usage

network.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ const (
1818
Kovan Network = "api-kovan"
1919
// Rinkby Testnet(CLIQUE)
2020
Rinkby Network = "api-rinkeby"
21+
// Goerli Testnet(CLIQUE)
22+
Goerli Network = "api-goerli"
2123
// Tobalaba Testnet
2224
Tobalaba Network = "api-tobalaba"
2325
)
@@ -27,6 +29,6 @@ type Network string
2729

2830
// SubDomain returns the subdomain of etherscan API
2931
// via n provided.
30-
func (n Network) SubDomain() (sub string) {
32+
func (n Network) SubDomain() (sub string) {
3133
return string(n)
32-
}
34+
}

0 commit comments

Comments
 (0)