Restore your follow list with nak

Alex Gleason

15. Juni 2024June 15, 2024 · 2 Min. Lesezeit2 min read

Uh-oh, you just followed someone on a new Nostr client, and it wiped your entire follow list!

Let's use nak to check if an older version of your follow list still exists somewhere on the network:

nak req -k 3 -a YOUR_PUBKEY wss://relay.example.com

Once you've found your follow list on a relay, let's sign a new event and republish it:

nak req -k 3 -a YOUR_PUBKEY wss://relay.old.com | jq -c '{kind, content, tags}' | nak event --sec YOUR_SECKEY wss://relay.new.com

If this succeeded, go ahead and run history -c to clear your terminal history, since you copied your private key into the terminal session.

Now you can copy the new follow list to any additional relays:

nak req -k 3 -a YOUR_PUBKEY wss://relay.new.com | nak event wss://relay.other.com

Run this any number of times, replacing wss://relay.other.com each time.

That's it! 🎉

If you couldn't find your event, you may be out of luck.

To learn more about syncing data with nak, read Sync your data between relays with nak.

#nak#nostr

Written by

Comments

No comments yet. Start the conversation.