Skip to content

fetch bound JNS and npub from blockchain and generate a nostr.json for NIP-05

Notifications You must be signed in to change notification settings

Jouleverse/nostr-gen

Repository files navigation

nostr.json generator

Requirements

  1. Iterate through all bound JNS. (JNS NFT)
  2. Check its correspondant npub key. (JNSDAOV SBT)
  3. Generate nostr.json with key:value = JNS:hex(npub).

Possible usage

  1. Pull the docker image with nodejs
$ docker pull node
  1. Start the container
$ docker run -v ~/nostr-gen:/ng --name 'nostr-gen' -it node /bin/bash
  1. (in docker container) Install etherjs package
# cd /ng
# npm install etherjs
# ^D (exit)
  1. Restart the container
$ docker start nostr-gen
  1. Run checkupdate.sh
$ docker exec nostr-gen /ng/checkupdate.sh

Crontab setup

0 * * * * docker exec nostr-gen /ng/checkupdate.sh

Revisions

rev 2: 2023.11.2 evan.j - use docker

rev 1: 2023.3.2 evan.j seed.j

Contributors

seed.j evan.j

About

fetch bound JNS and npub from blockchain and generate a nostr.json for NIP-05

Resources

Stars

Watchers

Forks

Packages

No packages published