1.0.0 • Published 2 years ago
react-web3-hook v1.0.0
react-web3-hook
Web3 hook for react
Install
npm install --save react-web3-hook
OR
yarn add react-web3-hook
Usage
App.tsx
import { Web3Container } from 'react-web3-hook';
const App = () => {
return (
<Web3Container >
{...}
</Web3Container>
);
};
export default App;
web3 hook
const {
isLoaded,
isWeb3,
accounts,
network,
networkId,
explorerUrl,
currentAddress,web3,error
} = useWeb3()
License
MIT © z3r0c00l-2k
1.0.0
2 years ago