Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ndk.zap() returns NDKZapper, not bolt11 payment request #265

Open
mmalmi opened this issue Aug 30, 2024 · 1 comment
Open

ndk.zap() returns NDKZapper, not bolt11 payment request #265

mmalmi opened this issue Aug 30, 2024 · 1 comment

Comments

@mmalmi
Copy link

mmalmi commented Aug 30, 2024

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?

@jjim1982
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants