From 59f5c9c042b54151abca61913626f2edbce7667a Mon Sep 17 00:00:00 2001 From: Adrien Hopkins Date: Wed, 28 Jan 2026 12:51:57 -0500 Subject: Add doc comments to my exported $lib methods --- src/lib/nip01.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib/nip01.ts') diff --git a/src/lib/nip01.ts b/src/lib/nip01.ts index f7653fa4..a5d3f4b5 100644 --- a/src/lib/nip01.ts +++ b/src/lib/nip01.ts @@ -5,6 +5,7 @@ const USERINFO_RELAYS = [ ...DM_RELAYS_LIST, PUBLIC_COINOS_RELAY ]; import { SimplePool } from 'nostr-tools/pool'; const pool = new SimplePool(); +// Returns the content of the kind-0 event of the provided pubkey. export const getNostrUserInfo = async (pubkey: string) => { const events = await pool.querySync( USERINFO_RELAYS, { kinds: [0], limit: 1, authors: [pubkey] } -- cgit v1.2.3