The
getDefaultProvider
function will return a valid, live ethers.providers.JsonRpcProvider
.plain textconst provider = await peanut.getDefaultProvider('137')
The
getDefaultProviderURL
function will return a valid, live RPC url:plain textconst providerUrl = await peanut.getDefaultProviderUrl('137')
Note: The above functions work on all Peanut supported chains.