Skip to content

Scans all known online nostr relays for stale kind 0 metadata notes, rebroadcasts latest verified note

License

Notifications You must be signed in to change notification settings

UTXOnly/metadata_updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MEATADATA_UPDATER CLI

The MEATADATA_UPDATER CLI is a Python script that queries and updates events on Nostr relays. It can be used to check for outdated events and rebroadcast the latest event to the relays found to have old kind 0 events.

Features

  • Queries online Nostr relays for events.
  • Identifies relays with outdated events.
  • Rebroadcasts the latest event to relays with outdated events.

Requirements

  • Python 3.7+
  • The following Python libraries:
    • argparse
    • asyncio
    • concurrent.futures
    • hashlib
    • json
    • logging
    • time
    • requests
    • secp256k1
    • uvloop
    • websockets

Installation

  1. Clone the repository:

    git clone https://github.com/UTXOnly/metadata_updater.git
    cd metadata_updater
  2. Install the required Python libraries:

    pip install -r requirements.txt

Usage

Run the script with a public key hex to query for old kind 0 events:

python3 update_meta.py <public_key_hex_to_scan_+_update>

About

Scans all known online nostr relays for stale kind 0 metadata notes, rebroadcasts latest verified note

Topics

Resources

License

Stars

Watchers

Forks

Languages