🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

evm-web3-hooks

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

evm-web3-hooks

EVM Web3 hook

0.1.0
latest
Source
npm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

EVM web3 hook npm package

This video guid through how to extract existing react project's hook and publish it onto npm, so it will be come available everywhere by installing the npm pacakge yarn add or npm install.

How to use

  • npm install package
yarn add evm-web3-hooks
//or
npm install evm-web3-hooks
  • Wrap the top level component by
import Web3Provider from "evm-web3-hook";

<Web3Provider>
  <App/>
</Web3Provider>
  • Use global web3Context everywhere
const web3Context = useWeb3()

Release note

0.1.0

  • Add default value for web3Data (default chain id = 1)

FAQs

Package last updated on 25 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts