
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.
@fedimint/react
Advanced tools
  
  
  
Helpful React hooks for building with the Fedimint Web SDK.
pnpm install @fedimint/core-web @fedimint/react
import { FedimintWalletProvider, setupFedimintWallet } from '@fedimint/react'
setupFedimintWallet({
  lazy: false,
  debug: true,
})
// Wrap your app in the FedimintWalletProvider
<FedimintWalletProvider>
  <App />
</FedimintWalletProvider>
// App.tsx
// Balance
import { useBalance } from '@fedimint/react'
const balance = useBalance()
// Wallet
import { useOpenWallet } from '@fedimint/react'
const {
  walletStatus, // 'open' | 'closed' | 'connecting' | 'failed'
  openWallet, // () => Promise<boolean> - Returns true if wallet was opened successfully.
  joinFederation, // () => Promise<boolean> - Returns true if joined federation successfully.
} = useOpenWallet()
// Receive Lightning
import { useReceiveLightning } from '@fedimint/react'
const {
  generateInvoice, // (amount: number) => Promise<void>
  bolt11, // string
  invoiceStatus, // 'pending' | 'confirmed' | 'failed'
  error, // Error | undefined
} = useReceiveLightning()
// Send Lightning
import { useSendLightning } from '@fedimint/react'
const {
  payInvoice, // (bolt11: string) => Promise<void>
  paymentStatus, // 'pending' | 'confirmed' | 'failed'
  paymentError, // Error | undefined
} = useSendLightning()
FAQs
<!-- Removes the border below the header tag --> <summary> @fedimint/react
The npm package @fedimint/react receives a total of 118 weekly downloads. As such, @fedimint/react popularity was classified as not popular.
We found that @fedimint/react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.