```

// Find the first event from @jack, and zap it.

const jackHexPubKey = "82341f882b6eabcd2ba7f1ef90aad961cf074af15b9ef44a09f9d2a8fbfbe6a2";

const event = await ndk.fetchEvent({ authors: [jackHexPubKey] });

await event.zap(1337, "Zapping your post!");

```

Reply to this note

Please Login to reply.

Discussion

You mean converting npub to hex and hex to npub?