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