Skip to content

Commit 7e1dc95

Browse files
committed
Added Base endpointsto EtherscanProvider (ethers-io#4729).
1 parent 6c36f13 commit 7e1dc95

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src.ts/providers/provider-etherscan.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
* - Holesky Testnet (``holesky``)
1212
* - Arbitrum (``arbitrum``)
1313
* - Arbitrum Goerli Testnet (``arbitrum-goerli``)
14+
* - Base (``base``)
15+
* - Base Sepolia Testnet (``base-sepolia``)
1416
* - BNB Smart Chain Mainnet (``bnb``)
1517
* - BNB Smart Chain Testnet (``bnbt``)
1618
* - Optimism (``optimism``)
@@ -171,6 +173,10 @@ export class EtherscanProvider extends AbstractProvider {
171173
return "https:/\/api.arbiscan.io";
172174
case "arbitrum-goerli":
173175
return "https:/\/api-goerli.arbiscan.io";
176+
case "base":
177+
return "https:/\/api.basescan.org";
178+
case "base-sepolia":
179+
return "https:/\/api-sepolia.basescan.org";
174180
case "bnb":
175181
return "https:/\/api.bscscan.com";
176182
case "bnbt":

0 commit comments

Comments
 (0)