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