@edgeandnode/wallet
TypeScript icon, indicating that this package has built-in type declarations

11.8.0 • Public • Published

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>

Readme

Keywords

none

Package Sidebar

Install

npm i @edgeandnode/wallet

Weekly Downloads

1,055

Version

11.8.0

License

UNLICENSED

Unpacked Size

550 kB

Total Files

43

Last publish

Collaborators

  • andras_en
  • migueldeelias
  • pcarranzav_edgeandnode
  • lutter
  • edge-and-node
  • leoyvens
  • lnsd
  • neysofu
  • nasmr
  • adam-en
  • benface
  • fordn
  • theodus
  • jannispohlmann
  • dnfodjo
  • iain_mccown
  • that3percent
  • cmwhited
  • schmidsi