New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@edgeandnode/wallet

Package Overview
Dependencies
Maintainers
0
Versions
855
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@edgeandnode/wallet

Wallet utils and related components

11.32.1-update-code-block-header-padding-1719578462996-bacedbdbf964d023dfefecbefafb4452abc2ed4a
update-code-block-header-padding
Source
npm
Version published
Weekly downloads
2K
200.75%
Maintainers
0
Weekly downloads
 
Created
Source

E&N Wallet

Reusable React component for connecting to web3 wallets

Test coverage

Coverage lines Coverage functions Coverage branches Coverage statements

Usage

SigninModal and Context

import { SigninModal, useWallet } from '@edgeandnode/wallet'

const App = () => {
  const { address, setIsModalOpen } = useWallet()
  return (
    <div>
      Wallet address: { address }
      <button onClick={() => { setIsModalOpen(true) }}>
        Connect
      </button>
      <SigninModal headerImage="link/to/image.png" />
    </div>
  )
}

Context Provider

<WalletContextProvider infuraId={process.env.INFURA_KEY}>
  <App />
</WalletContextProvider>

FAQs

Package last updated on 28 Jun 2024

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