Skip to main content

Method Signature

Parameters

string
required
Network: ethereum, polygon, base, arbitrum, optimism

Returns

Returns an ethers.js JsonRpcProvider instance.

Examples

Direct Contract Interaction

Providers are cached internally. Multiple calls to getProvider() with the same network return the same instance.

Set Custom RPC

Use premium RPC

Get Network Info

Get network config