Skip to content

Commit 84ca14f

Browse files
committed
Updated third-party provider network URLs (#4542).
1 parent 4efef76 commit 84ca14f

File tree

3 files changed

+83
-4
lines changed

3 files changed

+83
-4
lines changed

src.ts/providers/provider-alchemy.ts

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,27 @@
11
/**
2-
* About Alchemy
2+
* [[link-alchemy]] provides a third-party service for connecting to
3+
* various blockchains over JSON-RPC.
4+
*
5+
* **Supported Networks**
6+
*
7+
* - Ethereum Mainnet (``mainnet``)
8+
* - Goerli Testnet (``goerli``)
9+
* - Sepolia Testnet (``sepolia``)
10+
* - Arbitrum (``arbitrum``)
11+
* - Arbitrum Goerli Testnet (``arbitrum-goerli``)
12+
* - Arbitrum Sepolia Testnet (``arbitrum-sepolia``)
13+
* - Base (``base``)
14+
* - Base Goerlia Testnet (``base-goerli``)
15+
* - Base Sepolia Testnet (``base-sepolia``)
16+
* - Optimism (``optimism``)
17+
* - Optimism Goerli Testnet (``optimism-goerli``)
18+
* - Optimism Sepolia Testnet (``optimism-sepolia``)
19+
* - Polygon (``matic``)
20+
* - Polygon Mumbai Testnet (``matic-mumbai``)
321
*
422
* @_subsection: api/providers/thirdparty:Alchemy [providers-alchemy]
523
*/
24+
625
import {
726
defineProperties, resolveProperties, assert, assertArgument,
827
FetchRequest
@@ -32,10 +51,14 @@ function getHost(name: string): string {
3251
return "arb-mainnet.g.alchemy.com";
3352
case "arbitrum-goerli":
3453
return "arb-goerli.g.alchemy.com";
54+
case "arbitrum-sepolia":
55+
return "arb-sepolia.g.alchemy.com";
3556
case "base":
3657
return "base-mainnet.g.alchemy.com";
3758
case "base-goerli":
3859
return "base-goerli.g.alchemy.com";
60+
case "base-sepolia":
61+
return "base-sepolia.g.alchemy.com";
3962
case "matic":
4063
return "polygon-mainnet.g.alchemy.com";
4164
case "matic-mumbai":
@@ -44,6 +67,8 @@ function getHost(name: string): string {
4467
return "opt-mainnet.g.alchemy.com";
4568
case "optimism-goerli":
4669
return "opt-goerli.g.alchemy.com";
70+
case "optimism-sepolia":
71+
return "opt-sepolia.g.alchemy.com";
4772
}
4873

4974
assertArgument(false, "unsupported network", "network", name);

src.ts/providers/provider-ankr.ts

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,18 @@
66
*
77
* - Ethereum Mainnet (``mainnet``)
88
* - Goerli Testnet (``goerli``)
9-
* - Polygon (``matic``)
9+
* - Sepolia Testnet (``sepolia``)
1010
* - Arbitrum (``arbitrum``)
11+
* - Base (``base``)
12+
* - Base Goerlia Testnet (``base-goerli``)
13+
* - Base Sepolia Testnet (``base-sepolia``)
14+
* - BNB (``bnb``)
15+
* - BNB Testnet (``bnbt``)
16+
* - Optimism (``optimism``)
17+
* - Optimism Goerli Testnet (``optimism-goerli``)
18+
* - Optimism Sepolia Testnet (``optimism-sepolia``)
19+
* - Polygon (``matic``)
20+
* - Polygon Mumbai Testnet (``matic-mumbai``)
1121
*
1222
* @_subsection: api/providers/thirdparty:Ankr [providers-ankr]
1323
*/
@@ -33,10 +43,31 @@ function getHost(name: string): string {
3343
return "rpc.ankr.com/eth";
3444
case "goerli":
3545
return "rpc.ankr.com/eth_goerli";
36-
case "matic":
37-
return "rpc.ankr.com/polygon";
46+
case "sepolia":
47+
return "rpc.ankr.com/eth_sepolia";
48+
3849
case "arbitrum":
3950
return "rpc.ankr.com/arbitrum";
51+
case "base":
52+
return "rpc.ankr.com/base";
53+
case "base-goerli":
54+
return "rpc.ankr.com/base_goerli";
55+
case "base-sepolia":
56+
return "rpc.ankr.com/base_sepolia";
57+
case "bnb":
58+
return "rpc.ankr.com/bsc";
59+
case "bnbt":
60+
return "rpc.ankr.com/bsc_testnet_chapel";
61+
case "matic":
62+
return "rpc.ankr.com/polygon";
63+
case "matic-mumbai":
64+
return "rpc.ankr.com/polygon_mumbai";
65+
case "optimism":
66+
return "rpc.ankr.com/optimism";
67+
case "optimism-goerli":
68+
return "rpc.ankr.com/optimism_testnet";
69+
case "optimism-sepolia":
70+
return "rpc.ankr.com/optimism_sepolia";
4071
}
4172

4273
assertArgument(false, "unsupported network", "network", name);

src.ts/providers/provider-infura.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,17 @@
99
* - Sepolia Testnet (``sepolia``)
1010
* - Arbitrum (``arbitrum``)
1111
* - Arbitrum Goerli Testnet (``arbitrum-goerli``)
12+
* - Arbitrum Sepolia Testnet (``arbitrum-sepolia``)
13+
* - Base (``base``)
14+
* - Base Goerlia Testnet (``base-goerli``)
15+
* - Base Sepolia Testnet (``base-sepolia``)
16+
* - BNB (``bnb``)
17+
* - BNB Testnet (``bnbt``)
18+
* - Linea (``linea``)
19+
* - Linea Goerlia Testnet (``linea-goerli``)
1220
* - Optimism (``optimism``)
1321
* - Optimism Goerli Testnet (``optimism-goerli``)
22+
* - Optimism Sepolia Testnet (``optimism-sepolia``)
1423
* - Polygon (``matic``)
1524
* - Polygon Mumbai Testnet (``matic-mumbai``)
1625
*
@@ -45,6 +54,18 @@ function getHost(name: string): string {
4554
return "arbitrum-mainnet.infura.io";
4655
case "arbitrum-goerli":
4756
return "arbitrum-goerli.infura.io";
57+
case "arbitrum-sepolia":
58+
return "arbitrum-sepolia.infura.io";
59+
case "base":
60+
return "base-mainnet.infura.io";
61+
case "base-goerlia":
62+
return "base-goerli.infura.io";
63+
case "base-sepolia":
64+
return "base-sepolia.infura.io";
65+
case "bnb":
66+
return "bnbsmartchain-mainnet.infura.io";
67+
case "bnbt":
68+
return "bnbsmartchain-testnet.infura.io";
4869
case "linea":
4970
return "linea-mainnet.infura.io";
5071
case "linea-goerli":
@@ -57,6 +78,8 @@ function getHost(name: string): string {
5778
return "optimism-mainnet.infura.io";
5879
case "optimism-goerli":
5980
return "optimism-goerli.infura.io";
81+
case "optimism-sepolia":
82+
return "optimism-sepolia.infura.io";
6083
}
6184

6285
assertArgument(false, "unsupported network", "network", name);

0 commit comments

Comments
 (0)