diff --git a/README.md b/README.md index bd2e0b0c..f152c0b7 100644 --- a/README.md +++ b/README.md @@ -114,9 +114,9 @@ The other main features Firebolt supports are as follows: - [X] NWC (NDK) - [x] Portal support (NFC) - [x] Payjoin (React Native) +- [x] Zap - [x] Ledger and Trezor - [ ] Miniscript -- [ ] Zap - [ ] BOLT12 - [ ] Beta App (Android - via APK) in 2025 diff --git a/src/app/nostr/client.jsx b/src/app/nostr/client.jsx index 016993b2..d0db0192 100644 --- a/src/app/nostr/client.jsx +++ b/src/app/nostr/client.jsx @@ -1,4 +1,5 @@ const { Keys, Client, Metadata, EventId, PublicKey, EventBuilder } = require("@nostr-dev-kit/ndk"); +const { NDKEvent, NDKEventId, NostrEvent , Decode, Encode} = require("@nostr-dev-kit/ndk-types"); async function main() { let keys = Keys.generate(); @@ -41,7 +42,13 @@ async function main() { // Send custom event to all relays await client.sendEvent(event); + // Zaps the client to the relay that sent the event + await client.zapToRelay(event); + await client.zappe(event); + await client.zapper(event); + await client.amount(event); + + // Send custom event to a specific previously added relay // await client.sendEventTo("wss://relay.damus.io", event); -} -main(); +}main();