@@ -15,41 +15,41 @@ import (
15
15
16
16
var (
17
17
// EthMainnet Ethereum mainnet for production
18
- EthMainnet Network = Network {"Ethereum" , "eth_main" , "ETH" , "https://api.etherscan.io/api?" }
18
+ EthMainnet Network = Network {"Ethereum" , "eth_main" , "ETH" , "https://api.etherscan.io/api?" , "0x1" , 1 }
19
19
// EthRopsten Testnet(POW)
20
- EthRopsten Network = Network {"Ethereum Ropsten" , "eth_ropsten" , "ETH" , "https://api-ropsten.etherscan.io/api?" }
20
+ EthRopsten Network = Network {"Ethereum Ropsten" , "eth_ropsten" , "ETH" , "https://api-ropsten.etherscan.io/api?" , "0x3" , 3 }
21
21
// EthKovan Testnet(POA)
22
- EthKovan Network = Network {"Ethereum Kovan" , "eth_kovan" , "ETH" , "https://api-kovan.etherscan.io/api?" }
22
+ EthKovan Network = Network {"Ethereum Kovan" , "eth_kovan" , "ETH" , "https://api-kovan.etherscan.io/api?" , "0x2a" , 42 }
23
23
// EthRinkby Testnet(CLIQUE)
24
- EthRinkby Network = Network {"Ethereum Rinkby" , "eth_rinkeby" , "ETH" , "https://api-rinkeby.etherscan.io/api?" }
24
+ EthRinkby Network = Network {"Ethereum Rinkby" , "eth_rinkeby" , "ETH" , "https://api-rinkeby.etherscan.io/api?" , "0x4" , 4 }
25
25
// EthGoerli Testnet(CLIQUE)
26
- EthGoerli Network = Network {"Ethereum Goerli" , "eth_goerli" , "ETH" , "https://api-goerli.etherscan.io/api?" }
26
+ EthGoerli Network = Network {"Ethereum Goerli" , "eth_goerli" , "ETH" , "https://api-goerli.etherscan.io/api?" , "0x5" , 5 }
27
27
// EthTobalaba Testnet
28
- EthTobalaba Network = Network {"Ethereum Tobalaba" , "eth_tobalaba" , "ETH" , "https://api-tobalaba.etherscan.io/api?" }
28
+ EthTobalaba Network = Network {"Ethereum Tobalaba" , "eth_tobalaba" , "ETH" , "https://api-tobalaba.etherscan.io/api?" , "0x0" , 0 }
29
29
// MaticMainnet Matic mainnet for production
30
- MaticMainnet Network = Network {"Polygon" , "polygon" , "MATIC" , "https://api.polygonscan.com/api?" }
30
+ MaticMainnet Network = Network {"Polygon" , "polygon" , "MATIC" , "https://api.polygonscan.com/api?" , "0x89" , 137 }
31
31
// MaticTestnet Matic testnet for development
32
- MaticTestnet Network = Network {"Polygon Mumbai" , "polygon_mumbai" , "MATIC" , "https://api-testnet.polygonscan.com/api?" }
32
+ MaticTestnet Network = Network {"Polygon Mumbai" , "polygon_mumbai" , "MATIC" , "https://api-testnet.polygonscan.com/api?" , "0x13881" , 80001 }
33
33
// BscMainnet Bsc mainnet for production
34
- BscMainnet Network = Network {"Binance" , "bsc" , "BNB" , "https://api.bscscan.com/api?" }
34
+ BscMainnet Network = Network {"Binance" , "bsc" , "BNB" , "https://api.bscscan.com/api?" , "0x38" , 56 }
35
35
// BscTestnet Bsc testnet for development
36
- BscTestnet Network = Network {"Binance test" , "bsc_test" , "BNB" , "https://api-testnet.bscscan.com/api?" }
36
+ BscTestnet Network = Network {"Binance test" , "bsc_test" , "BNB" , "https://api-testnet.bscscan.com/api?" , "0x61" , 97 }
37
37
// AvaxMainnet Avalanche mainnet for production
38
- AvaxMainnet Network = Network {"Avax" , "avax" , "AVAX" , "https://api.snowtrace.io/api?" }
38
+ AvaxMainnet Network = Network {"Avax" , "avax" , "AVAX" , "https://api.snowtrace.io/api?" , "0xa86a" , 43114 }
39
39
// AvaxTestnet Avalanche testnet for development
40
- AvaxTestnet Network = Network {"Avax test" , "avax_test" , "AVAX" , "https://api-testnet.snowtrace.io/api?" }
40
+ AvaxTestnet Network = Network {"Avax test" , "avax_test" , "AVAX" , "https://api-testnet.snowtrace.io/api?" , "0xa869" , 43113 }
41
41
// Fantom mainnet for production
42
- FantomMainnet Network = Network {"Fantom" , "fantom" , "FTM" , "https://api.ftmscan.com/api?" }
42
+ FantomMainnet Network = Network {"Fantom" , "fantom" , "FTM" , "https://api.ftmscan.com/api?" , "0xfa" , 250 }
43
43
// FantomTestNet
44
- FantomTestnet Network = Network {"Fantom test" , "fantom_test" , "FTM" , "https://api-testnet.ftmscan.com/api?" }
44
+ FantomTestnet Network = Network {"Fantom test" , "fantom_test" , "FTM" , "https://api-testnet.ftmscan.com/api?" , "0x0" , 0 }
45
45
// Cronos mainnet for production
46
- CronosMainnet Network = Network {"Cronos" , "cronos" , "CRO" , "https://api.cronoscan.com/api?" }
46
+ CronosMainnet Network = Network {"Cronos" , "cronos" , "CRO" , "https://api.cronoscan.com/api?" , "0x19" , 25 }
47
47
// Cronos test net
48
- CronosTestnet Network = Network {"Cronos test" , "cronos_test" , "CRO" , "https://api-testnet.cronoscan.com/api?" }
48
+ CronosTestnet Network = Network {"Cronos test" , "cronos_test" , "CRO" , "https://api-testnet.cronoscan.com/api?" , "0x152" , 338 }
49
49
// Arbitrum mainnet for production
50
- ArbitrumMainnet Network = Network {"Arbitrum" , "arbitrum" , "ETH" , "https://api.arbiscan.io/api?" }
50
+ ArbitrumMainnet Network = Network {"Arbitrum" , "arbitrum" , "ETH" , "https://api.arbiscan.io/api?" , "0x0" , 0 }
51
51
// Arbitrum test net
52
- ArbitrumTestnet Network = Network {"Arbitrum test" , "arbitrum_test" , "ETH" , "https://api-testnet.arbiscan.io/" }
52
+ ArbitrumTestnet Network = Network {"Arbitrum test" , "arbitrum_test" , "ETH" , "https://api-testnet.arbiscan.io/" , "0x0" , 0 }
53
53
54
54
networks = map [string ]* Network {
55
55
EthMainnet .Name : & EthMainnet ,
@@ -140,6 +140,8 @@ type Network struct {
140
140
CommonName string // CommonName of the network or chain
141
141
TokenName string // TokenName of the network
142
142
baseURL string // baseURL for the API client
143
+ ChainIDHex string // ChainIDHex for identifing the chain
144
+ ChainID int // ChainID for identyfing the chain
143
145
}
144
146
145
147
// Domain returns the subdomain of etherscan API via n provided.
0 commit comments