Incorrect InfuraProvider URLs for BSC #4951
Labels
minor-bump
Planned for the next minor version bump.
next-patch
Issues scheduled for the next arch release.
on-deck
This Enhancement or Bug is currently being worked on.
v6
Issues regarding v6
Ethers Version
6.13.5
Search Terms
provider, infura, bsc
Describe the Problem
I'm receiving timeout errors when using the Infura provider for BSC. Upon checking the code I discovered the RPC URLs used in the package are different than the ones provided by Infura. I was able to stop the errors by switching to JsonRpcProvider using the Infura provided URLs.
Source Code
ethers.js/src.ts/providers/provider-infura.ts
Line 68 in 0195f44
Ethers.js URLs
bnbsmartchain-mainnet.infura.io
bnbsmartchain-testnet.infura.io
Infura URLs
bsc-mainnet.infura.io
bsc-testnet.infura.io
Code Snippet
Contract ABI
Errors
Environment
node.js (v12 or newer)
Environment (Other)
No response
The text was updated successfully, but these errors were encountered: