Skip to content

Incorrect InfuraProvider URLs for BSC #4951

@0x-three

Description

@0x-three

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

return "bnbsmartchain-mainnet.infura.io";

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

request timeout (code=TIMEOUT, version=6.13.5)

Environment

node.js (v12 or newer)

Environment (Other)

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or improvement.fixed/completeThis Bug is fixed or Enhancement is complete and published.v6Issues regarding v6

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions