Skip to content

Commit 986e827

Browse files
committed
Added Filecoin network and Ankr endpoints (#5038).
1 parent 452b422 commit 986e827

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src.ts/providers/network.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,9 @@ function injectCommonNetworks(): void {
406406
registerEth("bnb", 56, { ensNetwork: 1 });
407407
registerEth("bnbt", 97, { });
408408

409+
registerEth("filecoin", 314, { });
410+
registerEth("filecoin-calibration", 314159, { });
411+
409412
registerEth("linea", 59144, { ensNetwork: 1 });
410413
registerEth("linea-goerli", 59140, { });
411414
registerEth("linea-sepolia", 59141, { });

src.ts/providers/provider-ankr.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* - Base Sepolia Testnet (``base-sepolia``)
1414
* - BNB (``bnb``)
1515
* - BNB Testnet (``bnbt``)
16+
* - Filecoin (``filecoin``)
17+
* - Filecoin Calibration Testnet (``filecoin-calibration``)
1618
* - Optimism (``optimism``)
1719
* - Optimism Goerli Testnet (``optimism-goerli``)
1820
* - Optimism Sepolia Testnet (``optimism-sepolia``)
@@ -58,6 +60,10 @@ function getHost(name: string): string {
5860
return "rpc.ankr.com/bsc";
5961
case "bnbt":
6062
return "rpc.ankr.com/bsc_testnet_chapel";
63+
case "filecoin":
64+
return "rpc.ankr.com/filecoin";
65+
case "filecoin-calibration":
66+
return "rpc.ankr.com/filecoin_testnet";
6167
case "matic":
6268
return "rpc.ankr.com/polygon";
6369
case "matic-mumbai":

0 commit comments

Comments
 (0)