🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@notifi-network/notifi-wallet-provider

Package Overview
Dependencies
Maintainers
8
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@notifi-network/notifi-wallet-provider

> TODO: description

latest
Source
npmnpm
Version
7.5.0
Version published
Maintainers
8
Created
Source

@notifi-network/notifi-wallet-provider

Simply wrap the React components with NotifiWalletProvider to utilize Notifi's supported wallets.

Supported wallets

  • Metamask browser extension
  • Keplr browser extension
  • more to come ...

Prerequisites

  • Node.js version > 18
  • React version > 17

Installation

npm install @notifi-network/notifi-wallet-provider

Usage

  • Wrap components with NotifiWalletProvider wrapper
//...
<NotifiWalletProvider>
  <App /> {/* or components which wants to consume context */}
</NotifiWalletProvider>
// ...
  • Use useWallet hook to access wallet information
// ...
import { useWallet } from '@notifi-network/notifi-wallet-provider';

function MyComponent() {
  const { selectWallet, selectedWallet, wallets, error, isLoading } =
    useWallet();

  useEffect(() => {
    if (error) {
      // handle error
    }
  }, [error]);

  return (
    <div>
      <div className="flex grow gap-6 px-5 justify-center items-center">
        {Object.keys(wallets) // `keplr` & `metamask`
          .filter((wallet) => wallets[wallet].isInstalled)
          .map((wallet) => {
            return (
              <button
                key={wallet}
                disabled={isLoading}
                className="bg-white size-32 flex items-center justify-center flex-col gap-3 rounded-lg border border-gray-600/10 cursor-pointer"
                onClick={() => {
                  wallets[wallet].connect(); // Refer to `Wallet methods` section for more supported wallet methods
                }}
              >
                <div>{wallet}</div>
              </button>
            );
          })}
      </div>
    </div>
  );
}

Wallet methods

  • connect - Connect to wallet
  • disconnect - Disconnect from wallet
  • signArbitrary - Sign arbitrary message

FAQs

Package last updated on 16 Sep 2025

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