Wikifreedia

Nostrudel Event Publisher

All versions

Nostrudel Event Publisher

Here is an example of how to publish a note collection (also called a “modular article”) of event kind 30040/30041 from nkbip-01 with the Event Publisher feature from Nostrudel. It also contains minimal instructions for using the Event Console and Nostr Army Knife to check for the creation of the events.

Json editor

If you got to the Nostrudel and login, and then proceed to select the menu item More and then Event Publisher , you will see the following json editing window with a standardized text. Publisher starting text

Fields

  • kind “1234” is just dummy information and will always need to be replaced. Enter kind “1” for a typical micro-blogging note
  • content field shall contain the human-readable information that the note will contain
  • tags are the specific data that a kind requires, in order to be interpreted
  • createdat_ is the UNIX time stamp at the time you opened the publisher.

The other required fields: - eventID the unique hex identifier for the event - pubkey the unique hex identifier for the npub that is creating the event - signature a hash of the event data will be automatically generated by Nostrudel, during the publishing of the event.

Create the notes

We now can create the two 30041 notes for our example collection, By simply editing the text within the console, like so:

  1. Change the kind to “30041” Change event kind
  2. Alter the tag and content fields to reflect the kind requirements First article note
  3. Click the Publish button on the top-right hand corner. Publish button
  4. If your json text is valid, you will be presented with a dialog window allowing you to generate a signature with Sign and publish the event with the Publish button that displays after the signature is generated.
  5. Copy the eventID out into a text document (for a later step), and then go ahead and complete those two steps. Publish dialog Signed event
  6. Complete steps 1-4 for a second time, editing the text slightly, so that you can tell them apart, later. Second note article
  7. You can then use the menu to navigate to More and then Event Console to find both 30041 events you’ve created. Event console 30041s
  8. Now repeat the entire process, but for the header event 30040, that will act as a sort of paperclip for the other two notes. You can see the information I used below, but you will have to adjust it to your own content and relays. The e fields should contain both eventID that you previously saved. Event 30040 part 1 Event 30040 part 2
  9. You can again use the Event Console to view the new event, and you will see the two note events included in the json text. Event Console 30040
  10. Congratulations, all three events have been successfully created and published to the relay(s) of your choice!

See your notes displayed nicely

You probably want to see the notes you created in a pretty viewer and try out the functionality, so: 1. Copy the ID of your 30040 event out of the Event Console and navigate again to More and then to Nostr Army Knife. (Note: you can also use this NAK to generate events.) 2. Paste the identifier into the field and it will proceed to generate the appropriate possible related identifiers for you to choose from. NAK console 3. Select the neventID and copy it into your clipboard. 4. Navigate to the the search function in Nostrudel (in the left-hand main menu) and enter the ID in the search field, filtered for notes. 5. Select your event in the results and use the context menu to view the raw json event. 6. It will list the naddr identifier. Copy it into your clipboard. 30040 event details 7. Navigate to Highlighter and edit the URL to show an address (denoted by /a/) and then paste your events naddr after that. https://highlighter.com/a/naddr.... 8. Press the “Enter” key and your note collection will be displayed, like so: Highlighter note collection


THE END. 😊

Other authors

No one else has published this topic yet.