Nostr. Event. StarterPacks
(Nostr Lib v0.2.1)
(event)
(nip51)
View Source
Starter Packs (Kind 39089)
A named set of profiles to be shared around with the goal of being followed
together. This is an addressable event with a d tag identifier.
Starter packs help new users discover interesting accounts to follow as a group.
Sets can have optional metadata: title, image, and description.
Defined in NIP 51 https://github.com/nostr-protocol/nips/blob/master/51.md
Summary
Functions
Creates a new starter pack (kind 39089).
Parses a kind 39089 event into a StarterPacks struct.
Types
Functions
Creates a new starter pack (kind 39089).
Arguments
identifier- Unique identifier for this starter packpubkeys- List of pubkeys to include in the packopts- Optional event arguments and set metadata
Options
:title- Starter pack title for display:image- Starter pack image URL:description- Starter pack description:pubkey- Event author pubkey:created_at- Event timestamp
Example
StarterPacks.create("nostr-devs", [
"pubkey1",
"pubkey2",
"pubkey3"
],
title: "Nostr Developers",
description: "Follow all the top Nostr protocol developers"
)
@spec parse(Nostr.Event.t()) :: t()
Parses a kind 39089 event into a StarterPacks struct.