5 Star 29 Fork 12

楠木 / etherscan-api

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
network.go 773 Bytes
一键复制 编辑 Web IDE 原始数据 按行查看 历史
Krasi Georgiev 提交于 2021-08-19 12:44 . add Goerli
/*
* Copyright (c) 2018 LI Zhennan
*
* Use of this work is governed by a MIT License.
* You may find a license copy in project root.
*/
package etherscan
const (
//// Ethereum public networks
// Mainnet Ethereum mainnet for production
Mainnet Network = "api"
// Ropsten Testnet(POW)
Ropsten Network = "api-ropsten"
// Kovan Testnet(POA)
Kovan Network = "api-kovan"
// Rinkby Testnet(CLIQUE)
Rinkby Network = "api-rinkeby"
// Goerli Testnet(CLIQUE)
Goerli Network = "api-goerli"
// Tobalaba Testnet
Tobalaba Network = "api-tobalaba"
)
// Network is ethereum network type (mainnet, ropsten, etc)
type Network string
// SubDomain returns the subdomain of etherscan API
// via n provided.
func (n Network) SubDomain() (sub string) {
return string(n)
}
Go
1
https://gitee.com/nanmu42/etherscan-api.git
git@gitee.com:nanmu42/etherscan-api.git
nanmu42
etherscan-api
etherscan-api
master

搜索帮助

14c37bed 8189591 565d56ea 8189591