ndk
ndk copied to clipboard
ndk.zap() returns NDKZapper, not bolt11 payment request
Readme says
await ndk.zap(event, 1337, "Zapping your post!"); // Returns a bolt11 payment request
but ndk.zap() returns NDKZapper in version 2.10.0. How do I get the payment request?
Would also like to know this! Docs say
await ndk.zap(event, 1337, "Zapping your post!"); // Returns a bolt11 payment request
and also
const event = await ndk.fetchEvent({ author: "[email protected]" })[0]; await event.zap(1337, "Zapping your post!"); // Returns a bolt11 payment request
But neither seem to give the expected return