-
It appears the |
Beta Was this translation helpful? Give feedback.
Answered by
tmm
Jan 16, 2022
Replies: 2 comments 11 replies
-
It should work for all networks. Does your ethers.js Provider use the current chain id? import { providers } from 'ethers'
import { Provider } from 'wagmi'
// Use `chainId` to make ethers.js provider network-aware
const provider = ({ chainId }) =>
new providers.InfuraProvider(chainId, 'Your infura id')
const App = () => (
<Provider provider={provider}>
<YourRoutes />
</Provider>
) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lsbyerley
-
I still can't seem to get it to pull polygon mainnet balance though. I'm using this provider
|
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It should work for all networks. Does your ethers.js Provider use the current chain id?