Why Nostr? What is Njump?
2024-08-22 05:25:17
in reply to

asoltys on Nostr: If you're looking to get the lightning address of a given npub you can query nostr ...

If you're looking to get the lightning address of a given npub you can query nostr relays for "kind 0" events for that pubkey. kind 0 events contain the profile metadata for a given pubkey including their username, avatar, etc. It may also have a "lud16" field with their lightning address, but it's an optional field.
Author Public Key
npub12ekpvme6m2cv37a9mgq4kzemej8tx6ttg40j582rh77ewpvkg65qj8tq0f