Skip to content

template to upload kind 30040 and 30041 notes to nostr relays

Notifications You must be signed in to change notification settings

limina1/upload_files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

upload.ts

  • first add individual json files to notes folder like {title_name}_0_1.json, {title_name}_1_2.json etc
  • add credentials to user.json
  • add relay(s) you care to publish to in upload.ts
  • change variable articleName to {title_name}
npm install
npx esrun src/upload.ts

read.js

  • counts all events of kind: {kind} on the relay of interest
node read.js

`

delete.ts

  • fetches all kinds 30040 and 30041 from a relay of a given user and deletes them.
npx esrun src/delete.ts

About

template to upload kind 30040 and 30041 notes to nostr relays

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published