AlchemyProvider: add supported networks

This commit is contained in:
g1nt0ki 2024-01-16 08:28:09 +01:00 committed by GitHub
parent 92cb3e4c06
commit e6ccae96ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,8 @@
* - Optimism Sepolia Testnet (``optimism-sepolia``)
* - Polygon (``matic``)
* - Polygon Mumbai Testnet (``matic-mumbai``)
* - Polygon ZKEVM (``polygonzkevm``)
* - Astar (``astar``)
*
* @_subsection: api/providers/thirdparty:Alchemy [providers-alchemy]
*/
@ -63,6 +65,10 @@ function getHost(name: string): string {
return "polygon-mainnet.g.alchemy.com";
case "matic-mumbai":
return "polygon-mumbai.g.alchemy.com";
case "polygonzkevm":
return "polygonzkevm-mainnet.g.alchemy.com";
case "astar":
return "astar-mainnet.g.alchemy.com";
case "optimism":
return "opt-mainnet.g.alchemy.com";
case "optimism-goerli":