
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@notifi-network/notifi-wallet-provider
Advanced tools
@notifi-network/notifi-wallet-providerSimply wrap the React components with NotifiWalletProvider to utilize Notifi's supported wallets.
Supported wallets
- Metamask browser extension
- Keplr browser extension
- more to come ...
npm install @notifi-network/notifi-wallet-provider
//...
<NotifiWalletProvider>
<App /> {/* or components which wants to consume context */}
</NotifiWalletProvider>
// ...
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>
);
}
connect - Connect to walletdisconnect - Disconnect from walletsignArbitrary - Sign arbitrary messageFAQs
> TODO: description
We found that @notifi-network/notifi-wallet-provider demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers collaborating on the project.
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.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.