Open charlie-kim opened 1 year ago
This is still WIP. Any estimated time for it to be completed?
@charlie-kim @woosal1337 To bypass the 'unsupported network' error with Avalanche networks, switch to using ethers.JsonRpcProvider
with your network's RPC URL.
Is Avalanche json-rpc compatible with Ethereum?
For some reason I thought it wasn’t. But if it is, I can add it to the InfuraProvider.
@ricmoo Looks like only C-Chain is compatible.
https://docs.infura.io/api/networks/avalanche-c-chain/json-rpc-methods
@charlie-kim @woosal1337 To bypass the 'unsupported network' error with Avalanche networks, switch to using
ethers.JsonRpcProvider
with your network's RPC URL.
Thanks. But ethers.JsonRpcProvider
makes extra request to get chain ID. It will be better to use ethers. InfuraProvider
.
@ricmoo any update on this, please?
Describe the Feature
Similar to https://github.com/ethers-io/ethers.js/issues/3323, creating a InfuraProvider instance with chain ID 43114(mainnet), 43113(fuji testnet) generates
unsupported network
error.Code Example