getReadOnlyProvider() function
Signature:
export declare function getReadOnlyProvider(
network: string,
chainId?: number,
): ethers.providers.BaseProvider;
Parameters
Parameter | Type | Description |
---|---|---|
network | string | the chain name or rpc url |
chainId | number | (Optional) the optional chain id |
Returns:
ethers.providers.BaseProvider
the provider