diff --git a/packages/providers/src.ts/alchemy-provider.ts b/packages/providers/src.ts/alchemy-provider.ts index 0caedb785..9b27dd677 100644 --- a/packages/providers/src.ts/alchemy-provider.ts +++ b/packages/providers/src.ts/alchemy-provider.ts @@ -70,6 +70,12 @@ export class AlchemyProvider extends UrlJsonRpcProvider { case "kovan": host = "eth-kovan.alchemyapi.io/v2/"; break; + case "matic": + host = "polygon-mainnet.g.alchemy.com/v2/"; + break; + case "maticmum": + host = "polygon-mumbai.g.alchemy.com/v2/"; + break; default: logger.throwArgumentError("unsupported network", "network", arguments[0]); } diff --git a/packages/providers/src.ts/infura-provider.ts b/packages/providers/src.ts/infura-provider.ts index 1bfaa9ed9..e32986a10 100644 --- a/packages/providers/src.ts/infura-provider.ts +++ b/packages/providers/src.ts/infura-provider.ts @@ -99,6 +99,12 @@ export class InfuraProvider extends UrlJsonRpcProvider { case "goerli": host = "goerli.infura.io"; break; + case "matic": + host = "polygon-mainnet.infura.io"; + break; + case "maticmum": + host = "polygon-mumbai.infura.io"; + break; default: logger.throwError("unsupported network", Logger.errors.INVALID_ARGUMENT, { argument: "network",