@@ -122,21 +122,15 @@ public abstract class EthereumNetworkBase implements EthereumNetworkRepositoryTy
122
122
public static final String FREE_MAINNET_RPC_URL = "https://rpc.ankr.com/eth" ;
123
123
public static final String FREE_POLYGON_RPC_URL = "https://polygon-rpc.com" ;
124
124
public static final String FREE_ARBITRUM_RPC_URL = "https://arbitrum.public-rpc.com" ;
125
- public static final String FREE_RINKEBY_RPC_URL = "https://rpc.ankr.com/eth_rinkeby" ;
126
125
public static final String FREE_GOERLI_RPC_URL = "https://rpc.ankr.com/eth_goerli" ;
127
126
public static final String FREE_MUMBAI_RPC_URL = "https://rpc-mumbai.maticvigil.com" ;
128
127
public static final String FREE_ARBITRUM_TEST_RPC_URL = "https://rinkeby.arbitrum.io/rpc" ;
129
- public static final String FREE_KOVAN_RPC_URL = "https://kovan.poa.network" ;
130
128
public static final String FREE_PALM_RPC_URL = "https://palm-mainnet.infura.io/v3/3a961d6501e54add9a41aa53f15de99b" ;
131
129
public static final String FREE_PALM_TEST_RPC_URL = "https://palm-testnet.infura.io/v3/3a961d6501e54add9a41aa53f15de99b" ;
132
130
public static final String FREE_CRONOS_MAIN_BETA_RPC_URL = "https://evm.cronos.org" ;
133
131
134
132
public static final String MAINNET_RPC_URL = usesProductionKey ? "https://mainnet.infura.io/v3/" + keyProvider .getInfuraKey ()
135
133
: FREE_MAINNET_RPC_URL ;
136
- public static final String RINKEBY_RPC_URL = usesProductionKey ? "https://rinkeby.infura.io/v3/" + keyProvider .getInfuraKey ()
137
- : FREE_RINKEBY_RPC_URL ;
138
- public static final String KOVAN_RPC_URL = usesProductionKey ? "https://kovan.infura.io/v3/" + keyProvider .getInfuraKey ()
139
- : FREE_KOVAN_RPC_URL ;
140
134
public static final String GOERLI_RPC_URL = usesProductionKey ? "https://goerli.infura.io/v3/" + keyProvider .getInfuraKey ()
141
135
: FREE_GOERLI_RPC_URL ;
142
136
public static final String POLYGON_RPC_URL = usesProductionKey ? "https://polygon-mainnet.infura.io/v3/" + keyProvider .getInfuraKey ()
@@ -147,10 +141,6 @@ public abstract class EthereumNetworkBase implements EthereumNetworkRepositoryTy
147
141
: FREE_MUMBAI_RPC_URL ;
148
142
public static final String OPTIMISTIC_MAIN_URL = usesProductionKey ? "https://optimism-mainnet.infura.io/v3/" + keyProvider .getInfuraKey ()
149
143
: OPTIMISTIC_MAIN_FALLBACK_URL ;
150
- public static final String OPTIMISTIC_TEST_URL = usesProductionKey ? "https://optimism-kovan.infura.io/v3/" + keyProvider .getInfuraKey ()
151
- : OPTIMISTIC_TEST_FALLBACK_URL ;
152
- public static final String ARBITRUM_TESTNET_RPC = usesProductionKey ? "https://arbitrum-rinkeby.infura.io/v3/" + keyProvider .getInfuraKey ()
153
- : FREE_ARBITRUM_TEST_RPC_URL ;
154
144
public static final String PALM_RPC_URL = usesProductionKey ? "https://palm-mainnet.infura.io/v3/" + keyProvider .getInfuraKey ()
155
145
: FREE_PALM_RPC_URL ;
156
146
public static final String PALM_TEST_RPC_URL = usesProductionKey ? "https://palm-testnet.infura.io/v3/" + keyProvider .getInfuraKey ()
@@ -163,22 +153,27 @@ public abstract class EthereumNetworkBase implements EthereumNetworkRepositoryTy
163
153
164
154
// Use the "Free" routes as backup in order to diversify node usage; to avoid single point of failure
165
155
public static final String MAINNET_FALLBACK_RPC_URL = usesProductionKey ? FREE_MAINNET_RPC_URL : "https://mainnet.infura.io/v3/" + keyProvider .getSecondaryInfuraKey ();
166
- public static final String RINKEBY_FALLBACK_RPC_URL = usesProductionKey ? FREE_RINKEBY_RPC_URL : "https://rinkeby.infura.io/v3/" + keyProvider .getSecondaryInfuraKey ();
167
- public static final String KOVAN_FALLBACK_RPC_URL = usesProductionKey ? FREE_KOVAN_RPC_URL : "https://kovan.infura.io/v3/" + keyProvider .getSecondaryInfuraKey ();
168
156
public static final String GOERLI_FALLBACK_RPC_URL = usesProductionKey ? FREE_GOERLI_RPC_URL : "https://goerli.infura.io/v3/" + keyProvider .getSecondaryInfuraKey ();
169
157
public static final String ARBITRUM_FALLBACK_MAINNET_RPC = usesProductionKey ? FREE_ARBITRUM_RPC_URL : "https://arbitrum-mainnet.infura.io/v3/" + keyProvider .getSecondaryInfuraKey ();
170
158
public static final String PALM_RPC_FALLBACK_URL = usesProductionKey ? FREE_PALM_RPC_URL : "https://palm-mainnet.infura.io/v3/" + keyProvider .getSecondaryInfuraKey ();
171
159
public static final String PALM_TEST_RPC_FALLBACK_URL = usesProductionKey ? FREE_PALM_RPC_URL : "https://palm-testnet.infura.io/v3/" + keyProvider .getSecondaryInfuraKey ();
172
160
161
+ //Deprecated: for now these RPCs still work
162
+ public static final String ROPSTEN_RPC_URL = "https://rpc.ankr.com/eth_ropsten" ;
163
+ public static final String RINKEBY_RPC_URL = "https://rpc.ankr.com/eth_rinkeby" ;
164
+ public static final String ARBITRUM_TESTNET_RPC = FREE_ARBITRUM_TEST_RPC_URL ;
165
+ public static final String SOKOL_RPC_URL = "https://sokol.poa.network" ;
166
+
167
+ //These Networks are no longer running
168
+ public static final String KOVAN_RPC_URL = "https://kovan.poa.network" ;
169
+ public static final String OPTIMISTIC_TEST_URL = OPTIMISTIC_TEST_FALLBACK_URL ;
170
+
173
171
//Note that AlphaWallet now uses a double node configuration. See class AWHttpService comment 'try primary node'.
174
172
//If you supply a main RPC and secondary it will try the secondary if the primary node times out after 10 seconds.
175
173
//See the declaration of NetworkInfo - it has a member backupNodeUrl. Put your secondary node here.
176
174
177
- public static final String ROPSTEN_FALLBACK_RPC_URL = "https://ropsten.infura.io/v3/" + keyProvider .getSecondaryInfuraKey ();
178
175
public static final String CLASSIC_RPC_URL = "https://www.ethercluster.com/etc" ;
179
176
public static final String POA_RPC_URL = "https://core.poa.network/" ;
180
- public static final String ROPSTEN_RPC_URL = "https://ropsten.infura.io/v3/" + keyProvider .getInfuraKey ();
181
- public static final String SOKOL_RPC_URL = "https://sokol.poa.network" ;
182
177
public static final String ARTIS_SIGMA1_RPC_URL = "https://rpc.sigma1.artis.network" ;
183
178
public static final String ARTIS_TAU1_RPC_URL = "https://rpc.tau1.artis.network" ;
184
179
public static final String BINANCE_TEST_RPC_URL = "https://data-seed-prebsc-1-s3.binance.org:8545" ;
@@ -363,15 +358,15 @@ public abstract class EthereumNetworkBase implements EthereumNetworkRepositoryTy
363
358
put (ROPSTEN_ID , new NetworkInfo (C .ROPSTEN_NETWORK_NAME , C .ETH_SYMBOL ,
364
359
ROPSTEN_RPC_URL ,
365
360
"https://ropsten.etherscan.io/tx/" , ROPSTEN_ID ,
366
- ROPSTEN_FALLBACK_RPC_URL , "https://api-ropsten.etherscan.io/api?" ));
361
+ ROPSTEN_RPC_URL , "https://api-ropsten.etherscan.io/api?" ));
367
362
put (RINKEBY_ID , new NetworkInfo (C .RINKEBY_NETWORK_NAME , C .ETH_SYMBOL ,
368
363
RINKEBY_RPC_URL ,
369
364
"https://rinkeby.etherscan.io/tx/" , RINKEBY_ID ,
370
- RINKEBY_FALLBACK_RPC_URL , "https://api-rinkeby.etherscan.io/api?" ));
365
+ RINKEBY_RPC_URL , "https://api-rinkeby.etherscan.io/api?" ));
371
366
put (KOVAN_ID , new NetworkInfo (C .KOVAN_NETWORK_NAME , C .ETH_SYMBOL ,
372
367
KOVAN_RPC_URL ,
373
368
"https://kovan.etherscan.io/tx/" , KOVAN_ID ,
374
- KOVAN_FALLBACK_RPC_URL , "https://api-kovan.etherscan.io/api?" ));
369
+ KOVAN_RPC_URL , "https://api-kovan.etherscan.io/api?" ));
375
370
put (SOKOL_ID , new NetworkInfo (C .SOKOL_NETWORK_NAME , C .POA_SYMBOL ,
376
371
SOKOL_RPC_URL ,
377
372
"https://blockscout.com/poa/sokol/tx/" , SOKOL_ID ,
0 commit comments