Polling interval #277
garrettparris
started this conversation in
General
Replies: 1 comment
-
You can set it on the ethers.js provider: import { providers } from 'ethers'
import { Provider } from 'wagmi'
const provider = ({ chainId }) => {
const provider_ = new providers.InfuraProvider(chainId, 'Your infura id')
provider_.pollingInterval = 2_000
return provider_
}
const App = () => (
<Provider provider={provider}>
<YourRoutes />
</Provider>
) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Any idea how to implement a polling interval into this system?
Beta Was this translation helpful? Give feedback.
All reactions