Goal
NWC connections can carry a Lightning Address via &lud16=user%40domain.com on the connection string. This is the foundation for Lightning Address integration; the address itself can come from anywhere (self-hosted, third-party).
Scope
- Add
lud16 field to connection data model
- Accept it during connection creation (CLI + API)
- Append to NWC string when present
- Display in
nutbits connections and TUI
- Allow update/removal after creation
Hints
- Follow how
label flows through the codebase - same pattern
- Validate format:
user@domain
- URL-encode the
@ when appending to the NWC string
- nostr-core LNURL module has
fetchPayRequest() - use it to validate the address actually resolves before storing it. Good UX: don't let users attach a dead address.
Acceptance
Goal
NWC connections can carry a Lightning Address via
&lud16=user%40domain.comon the connection string. This is the foundation for Lightning Address integration; the address itself can come from anywhere (self-hosted, third-party).Scope
lud16field to connection data modelnutbits connectionsand TUIHints
labelflows through the codebase - same patternuser@domain@when appending to the NWC stringfetchPayRequest()- use it to validate the address actually resolves before storing it. Good UX: don't let users attach a dead address.Acceptance
nutbits connectoptionally asks for a Lightning AddressPOST /api/v1/connectionsacceptslud16&lud16=...when providednutbits connectionsand TUI display the address