UNPKG

node-red-contrib-nostr

Version:

Node-RED nodes for seamless Nostr protocol integration. Features robust WebSocket handling, event filtering, and NPUB-based routing. Built with TypeScript for type safety and extensive testing. Perfect for Nostr automation flows.

16 lines (15 loc) 471 B
import { NostrEvent } from '../nodes/shared/types'; export interface Contact { pubkey: string; relayUrl: string; petname?: string; } export declare class ContactList { static parseContactList(event: NostrEvent): Contact[]; static createContactListEvent(contacts: Contact[], privateKey: string): Promise<NostrEvent>; static getContactListFilter(pubkey: string): { kinds: number[]; authors: string[]; limit: number; }; }