Socket
Socket
Sign inDemoInstall

@colorfullife/evm-web3-hook

Package Overview
Dependencies
520
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @colorfullife/evm-web3-hook

EVM Web3 hook


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Created
Weekly downloads
 

Readme

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

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

<Web3Provider>
  <App/>
</Web3Provider>
  1. Use global web3Context everywhere
const web3Context = useWeb3()
  1. The example EVM Dapp boilerplate

Release note

0.1.0

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

FAQs

Last updated on 04 Jul 2023

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc