nostr-websocket-utils

nostr-websocket-utils v0.3.0


nostr-websocket-utils / createContactListEvent

Function: createContactListEvent()

createContactListEvent(contacts, metadata): NostrWSMessage

Creates a contact list event

Parameters

contacts

Contact[]

List of contacts

metadata

Record<string, unknown> = {}

Optional metadata for the contact list

Returns

NostrWSMessage

Contact list event

Defined in

nips/nip-02.ts:31