Alby Developer Guide
User GuideDeveloper Portal
NWC API
NWC API
  • Introduction
    • ❔What is Nostr Wallet Connect?
  • Building Lightning Apps
    • ⛓️NWC HTTP API
      • ℹ️Fetch NWC Info
      • 📢Publish NWC Request
      • ✍️Publish Event
      • 📩Subscribe to Events
      • 🔔Subscribe to NWC Notifications
      • 🔕Delete Subscriptions
      • ↔️Code examples: Creating Requests
    • ⚡NWC JS SDK
  • Building NWC Wallet Services
    • 🗼Alby NWC Relay
Powered by GitBook
LogoLogo

Our content

  • Website
  • Blog
  • GitHub

Follow us

  • Nostr
  • Twitter / X
  • Youtube

Contact us

  • E-mail
  • Community Chat
  • Open Hours

Your bitcoin & nostr companion / from 🐝 with 🧡

On this page
  • What are NWC Wallet services?
  • Why do I need an NWC relay?
  • How can I get started?

Was this helpful?

  1. Building NWC Wallet Services

Alby NWC Relay

Use the Alby NWC Relay for your NWC wallet service

Last updated 1 month ago

Was this helpful?

NWC is an open protocol to let your users connect their wallets to third-party applications and enjoy in-app payments. Dozens of support NWC already. Join the community.

What are NWC Wallet services?

To enable your bitcoin lightning wallet to be connected via the NWC protocol, you need to build an NWC wallet service, which takes care of:

  1. Accessing the wallet for transactions and wallet information

  2. Creating NWC URIs to initiate the connection between apps and your wallet

  3. Sending and receiving NWC messages to facilitate lightning capabilities in connected apps

Watch to see how much NWC improves the payment experience for users.

Why do I need an NWC relay?

NWC uses Nostr's relay technology to send and receive the mentioned NWC requests. As defined by the NWC specification a wallet service needs to issue NWC URIs containing the relay.

NWC does not specify any requirements on the type of a Nostr-compatible relay. However, it is recommended to use a dedicated relay. Doing so prevents metadata leaks and ensures reliability.

That's why Alby is offering a professionally operated relay specialized on NWC events.

How can I get started?

Interested wallet application aspiring to build a robust NWC wallet service can access the relay at: .

There is no authentication needed. We want you to focus on building instead of dealing with administrative topics.

To ensure enough capacity for your service, please . We'll scale up the infrastructure for you.

There are two options to start sending and receiving events:

Use the to communicate events via HTTP instead of dealing with websockets.

Connect yourself to

In case of any questions, feel free to .

🗼
apps and wallets
these videos
wss://relay.getalby.com/v1
reach out
NWC HTTP API
wss://relay.getalby.com/v1
contact us