Method Signature
Parameters
string
required
Network:
ethereum, polygon, base, arbitrum, optimismReturns
Returns an ethers.jsJsonRpcProvider instance.
Examples
- TypeScript
- JavaScript
Direct Contract Interaction
Providers are cached internally. Multiple calls to
getProvider() with the
same network return the same instance.Related Methods
Set Custom RPC
Use premium RPC
Get Network Info
Get network config