What is Nostr?
gigq / Justin Sanders
npub1yxd…s6qd
2022-12-20 01:26:06

gigq on Nostr: One liner using nostcat (https://github.com/blakejakopovic/nostcat) and jq ...

One liner using nostcat (https://github.com/blakejakopovic/nostcat) and jq (https://stedolan.github.io/jq/) to copy events from one relay to another. I’m using this to copy events from the people I follow to my own personal relay but you could also use it to broadcast your events to other public relays.

echo '["REQ", "CID", {"authors": ["219b82fd61787fb11b557cb6ba972ae475645bebd11a49b142819fe55bced64c"]]}]' | nostcat -u wss://relay.damus.io | jq -c 'del(.[1])' | nostcat --stream ws://localhost
Author Public Key
npub1yxdc9ltp0plmzx640jmt49e2u36kgklt6ydynv2zsx072k7w6exq6as6qd