
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@fedimint/core-web
Advanced tools
This package provides a typescript interface for a fedimint client in the browser.
Bundles the wasm-pack output of the rust-based fedimint client.
// npm or yarn or pnpm
pnpm add @fedimint/core-web
This package relies on the wasm binary to be bundled with your application. You will likely need to update your bundler's or framework's configuration to load the wasm file. Setup guides for popular frameworks are coming soon.
See the vite.config.ts
file in the vite-core example for an example of configuring wasm with Vite.
import { FedimintWallet } from '@fedimint/core-web'
// Create the Wallet client
const wallet = new FedimintWallet()
// This should be called only once in the application
// lifecycle. It will automatically load your saved
// wallet state from previous sessions.
await wallet.open()
// Join a Federation
const inviteCode = 'fed11qgqpw9thwvaz7t...' // Federation invite code
await wallet.joinFederation(inviteCode)
// After you've joined a federation, your federation state
// will be stored in the browser. Future calls to `open()`
// will automatically load your saved federation.
// Get Wallet Balance (sync)
const balance = await wallet.getBalance()
// Get Wallet Balance (stream)
// Make sure to call `unsubscribe()` when you're done
const unsubscribe = wallet.subscribeBalance((balance: number) => {
console.log('updated balance', balance)
})
// Receive Ecash Payments
await wallet.reissueNotes('A11qgqpw9thwvaz7t...')
// Pay Lightning Invoice
await wallet.payInvoice('lnbc...')
FAQs
Shim package that re-exports @fedimint/core. Use that instead.
The npm package @fedimint/core-web receives a total of 946 weekly downloads. As such, @fedimint/core-web popularity was classified as not popular.
We found that @fedimint/core-web 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.