nostr-coreDead simple NWC client
Vendor-neutral Nostr Wallet Connect for JavaScript and TypeScript
Vendor-neutral Nostr Wallet Connect for JavaScript and TypeScript
Pay invoices, check balances, and create invoices with a single connection string. Full NIP-47 coverage.
Built-in fiat-to-sats conversion using public exchange rate APIs. No extra dependencies needed.
Native LNURL-pay resolution. Send to Lightning Addresses without any external libraries.
Automatically detects NIP-04 vs NIP-44 encryption support. Zero configuration required.
Eight specific error classes for precise failure handling - wallet errors, timeouts, relay issues, and more.
Works on Node.js 18+, Deno, Bun, and Cloudflare Workers. Pure JavaScript, no native bindings.
import { NWC } from 'nostr-core'
const nwc = new NWC('nostr+walletconnect://...')
await nwc.connect()
const { balance } = await nwc.getBalance()
console.log(`Balance: ${balance} msats`)
nwc.close()