---
title: "Nostr Wallet Connect (NWC) — definition | Nuri Glossary"
description: "Controlling a Lightning wallet from another app using Nostr keys and permissions."
lang: "en"
type: "glossary-term"
canonical: "https://nuri.com/glossary/nostr-wallet-connect"
---

# Nostr Wallet Connect (NWC)

Controlling a Lightning wallet from another app using Nostr keys and permissions.

## Basically

Nostr Wallet Connect lets an app control your Lightning wallet from somewhere else. Nostr keys prove who is asking, and encryption keeps the messages private.

## Key Takeaways

- Nostr Wallet Connect (NWC) is a protocol defined in NIP-47 that lets any app send Lightning payment requests to your wallet through encrypted Nostr messages without the app ever holding funds.
- NWC uses per-connection keypairs with configurable spending limits, so you can approve individual payments, set daily or monthly budgets, or allow automatic payments below a threshold while keeping self-custody intact.
- The protocol enables zapping, which is social tipping on Nostr, plus in-app purchases, subscription payments and automated Lightning transactions, complementing LNURL and Lightning Address for different use cases.

## What Is Nostr Wallet Connect?

Nostr Wallet Connect (NWC) is an open protocol that allows applications to remotely control your Lightning wallet through the Nostr messaging network. NIP-47 defines NWC, letting any Nostr-compatible app request payments, generate invoices and check balances without running its own Lightning node or custodying user funds.
The core idea is separation of concerns: the app handles the user experience, while the wallet handles the money. A social media client can offer one-tap tipping, a podcast app can stream sats to creators, and a marketplace can accept Lightning payments. None of these apps need to integrate directly with a Lightning node because NWC provides a standardised communication layer between app and wallet.
NWC was originally developed by the Alby team and has become the de facto standard for Lightning integration within the Nostr ecosystem. Its design builds on Nostr's existing relay infrastructure and cryptographic primitives, making it straightforward for any application already connected to Nostr relays to add payment capabilities.

## How It Works

NWC relies on three components: a wallet service (your Lightning wallet), a client (the app requesting payments), and one or more Nostr relays. The relays carry encrypted messages between the wallet and the app.

## Connection Setup

The connection process begins when you want to connect an app to your wallet. Your wallet generates a connection URI containing everything the app needs to communicate.
The connection URI contains three pieces of information. Your app needs these pieces to communicate with your wallet.
You typically scan a QR code or paste the URI into the app. Each connection gets its own keypair, so revoking one app's access does not affect others.

## Request and Response Flow

The app and wallet communicate through encrypted Nostr events once connected. NWC defines two primary event kinds.
A typical payment flow follows the NWC request and response pattern. The app and wallet exchange encrypted Nostr events through the relays.
All communication is encrypted using NIP-04 (AES-256-CBC with a shared secret derived from ECDH). The relay transports the messages but cannot read their contents, and the protocol is asynchronous, so requests queue on the relay if the wallet is temporarily offline until it reconnects.

## Supported Methods

NWC defines a set of JSON-RPC-style methods that apps can invoke. These methods give apps a standard way to request wallet functions.
Wallet services advertise which methods they support through the get_info response. Apps can then adapt their UI to the wallet's capabilities.

## Permission Model

NWC's security design centres on per-connection isolation and configurable spending controls. Each app connection receives its own keypair, so compromising one connection does not expose others.
Wallet services typically offer several layers of control. You can use these controls to limit what each connection may do.
The model is analogous to OAuth scopes in web APIs. Each connection gets precisely the permissions it needs, nothing more.

## Zapping on Nostr

The most widespread use of NWC is "zapping": sending Lightning micropayments to content creators on Nostr. NIP-57 defines zaps, which are recorded as Nostr events so other users can see that a post or profile received tips. NWC provides the payment mechanism that makes zaps possible from any client.
Nostr clients had to either integrate their own Lightning wallets or rely on custodial services before NWC. NWC lets you connect your preferred wallet, including self-custodial options, and zap directly from the client interface.

## Streaming Payments

Podcast apps like Fountain use NWC to stream sats to creators in real time while you listen to content. This value-for-value model replaces advertising revenue with direct listener-to-creator payments, enabled by Lightning's low fees and NWC's ability to automate small payments without repeated user approval.

## Subscriptions and Recurring Payments

Pre-authorised spending limits let NWC support subscription-style payments. A paid newsletter or content platform can automatically charge your wallet on a schedule, provided the payments stay within the approved budget. The flow is similar to how LNURL handles recurring payments, but with the added benefit of working over Nostr's relay infrastructure rather than requiring a dedicated HTTP server.

## In-App and Automated Payments

Any application built on Nostr can use NWC to add payment capabilities without building Lightning infrastructure. Marketplaces can process payments, games can handle in-app purchases, and bots can distribute rewards, all through standardised NWC requests to your own wallet.

## NWC vs. LNURL and Lightning Address

NWC, LNURL, and Lightning Address all simplify Lightning payments, but they solve different problems. Each protocol has a distinct role in the payment process.
The key distinction is that NWC is a wallet control protocol, acting as a remote control for your wallet, while LNURL and Lightning Address are payment request protocols, providing ways to ask someone to pay you. They are complementary, so a wallet could expose a Lightning Address for receiving payments and support NWC for sending them.

## Wallet Support

Several Lightning wallets and services implement NWC as either a wallet service (provider) or a client. These implementations cover both sides of an NWC connection.
Most major Nostr apps support NWC for zapping on the client side: Damus (iOS), Amethyst (Android), Primal (cross-platform), and numerous web clients. Podcast apps like Fountain and music platforms like Wavlake have also adopted the protocol for streaming payments.

## Relay Trust and Metadata Exposure

NWC encrypts message contents so relays cannot read payment details, but relays can observe metadata: which public keys communicate, when messages are sent, and how frequently. A dedicated NWC relay, like Alby's, reduces exposure to third-party observation but introduces a single point of failure. Communication between app and wallet stalls if the relay goes offline until it recovers or you configure an alternative.

## Key Security

The connection secret stored on the client device is the key to controlling the wallet within the configured limits. An attacker could send payment requests if the device is compromised, but per-connection keypairs limit the blast radius, so compromising one app's connection does not affect other connections, while spending limits further cap potential losses. You should treat NWC connection URIs like passwords and never share them publicly.

## Spending Limit Enforcement

Spending limits are enforced by the wallet service software, not by cryptographic proofs. You must trust that your wallet implementation correctly enforces the configured budgets, because a bug in the wallet service could theoretically allow payments beyond the set limits. Well-audited, open-source wallet implementations reduce this risk.

## Encryption Limitations

NWC currently uses NIP-04 encryption (AES-256-CBC), which lacks authenticated encryption. The Nostr community has developed NIP-44 (XChaCha20-Poly1305 with authenticated encryption) as a more secure replacement, and migration is underway. The encryption layer is functional until the transition is complete, but it does not meet the standard of modern cryptographic best practices.

## Why It Matters

NWC addresses a fundamental challenge in Lightning adoption: letting apps interact with Lightning payments without building complex node infrastructure or requiring you to trust a custodian. A standardised, encrypted communication layer between apps and wallets allows any developer to add Lightning payments to an application with minimal effort. Research on Nostr, Bitcoin, and identity-based payments offers a deeper look at how Nostr and Bitcoin payments intersect.
Lightning-native platforms like Spark can use NWC as a useful interoperability standard. Broader NWC adoption gives you the flexibility to connect your preferred wallet to any compatible application, reinforcing the self-custodial model that makes Lightning payments powerful. The protocol complements other Lightning standards like BOLT12 offers and LNURL by focusing on the wallet-to-app communication layer rather than the payment request format itself.
The glossary entry is for informational purposes only and does not constitute financial or investment advice. You should always do your own research before using any protocol or technology.
Part of the [Nuri glossary](https://nuri.com/glossary), which defines 1876 Bitcoin, Lightning, wallet, stablecoin and payment terms.
