What is Nostr?
errhead /
npub1mka…zl8u
2024-01-25 20:24:32
in reply to nevent1q…zrp0

errhead on Nostr: for supporting wallets like Alby, fountian.fm, v4vapp, etc. to send a keysend cross ...

for supporting wallets like Alby, fountian.fm, v4vapp, etc.

to send a keysend cross app comment zap to errhead@podcastindex.com I first use an API call to get the user account info from podcastindex and find the lud16/⚡ of errhead@getalby.com

Lookup keysend node and user info at https://getalby.com/.well-known/keysend/errhead
{"status":"OK","tag":"keysend","pubkey":"030a58b8653d32b99200a2334cfe913e51dc7d155aa0116c176657a4f1722677a3","customData":[{"customKey":"696969","customValue":"LiPQ3WVvdeEFnuhcWNLy"}]}

the pubkey is the lightning node address, the custom key is different for each wallet provider so far, and the custom value specifies which users wallet to send the payment to.

send the payment using a keysend supporting webln implementation, which is currently only Alby's extension as far as i know, or an API call which has more options.

await webln.enable();
const result = await webln.keysend({
destination: "03006fcf3312dae8d068ea297f58e2bd00ec1ffe214b793eda46966b6294a53ce6",
amount: "1",
customRecords: {
"696969": "LiPQ3WVvdeEFnuhcWNLy"
}
});

Metadata is passed using the TLV custom record. for user to user cross app comment zaps I use a subset of the full boostagram TLV https:/github.com/Podcastindex-org/podcast-namespace/blob/main/value/blip-0010.md

For payment confirmation I use the getalby webhook to the PeerTube server. https://guides.getalby.com/developer-guide/v/alby-wallet-api/reference/api-reference/webhook-endpoints
Author Public Key
npub1mkamtzdjk9cwutzx4rm7j6lwjgcsza4yszuztpe0k99jn9gkynqq0tzl8u