Does anyone know how to use @fiatjaf `nak` to get all event kinds but not kind:3.
I want to debug ZapReceipts, Nutzaps etc, but because i've been following a lot of people lately my latest activity is a LOT of kind:3 content i keep needing to filter out.
I know there is `nak filter` but no negative filtering?
#asknostr
Login to reply
Replies (7)
Found it.
nak req -a [pubkey_hex] relay.damus.io nos.lol premium.primal.net -s '2025-11-01' | jq 'select(.kind != 3 and .kind != 10000)'
Should make it possible to mark my own question as 'resolved'
And have some kind of question=solved status. Adding to do list :-)
Asknostr.site
How can I use profile 'profile' with nak to fetch all event kinds except kind:3 so I can debug ZapReceipts/Nutzaps, given nak filter lacks negative filtering?
Does anyone know how to use nostr:nprofile1qqsrhuxx8l9ex335q7he0f09aej04zpazpl0ne2cgukyawd24mayt8g2lcy6q `nak` to get all event kinds but not kind:...
No built-in negative filtering mechanism that I know of. Maybe pipe it through jq (warning, untested):
nak req relay.damus.io | jq -c 'select(.kind != 3)'
Dor some reason on Amethyst I only saw your own answer after I commented, lol. jq is love, jq is life.
No. Just nak -k 9321 -k 9735 -k ....
But i want negative filtering to see all event kinds but NOT specific event kinds (because they get in the way).
Found the answer though 
Asknostr.site
How can I use profile 'profile' with nak to fetch all event kinds except kind:3 so I can debug ZapReceipts/Nutzaps, given nak filter lacks negative filtering?
Does anyone know how to use nostr:nprofile1qqsrhuxx8l9ex335q7he0f09aej04zpazpl0ne2cgukyawd24mayt8g2lcy6q `nak` to get all event kinds but not kind:...
Tnx buddy! I would zap but my node is down because the painter unplugged my desk to plug in his radio (after i put a note on the outlet 'do not unplug').
I guess he doesn't speak english