Skip to main content

useProvider

This hook helps you get Provider information from the state.

Usage

import { useProvider } from "ethylene/hooks";

function App() {

const { provider, setProvider} = useProvider();

return (
...
);
}

API

type ReturnType = {
provider: Web3Provider | undefined;
setProvider: (to: Web3Provider) => void;
};