Documentation
/Hooks
/useProvider
useProvider
Hook for accessing ethers.js Provider from global configuration.
import { useProvider } from 'wagmi'
Usage
import { useProvider } from 'wagmi'
const App = () => {
const provider = useProvider()
return ...
}
Return Values
ethers.Provider