Function filterFromId

  • Creates a valid nostr filter from an event id or a NIP-19 bech32.

    Parameters

    • id: string

    Returns NDKFilter

    const bech32 = "nevent1qgs9kqvr4dkruv3t7n2pc6e6a7v9v2s5fprmwjv4gde8c4fe5y29v0spzamhxue69uhhyetvv9ujuurjd9kkzmpwdejhgtcqype6ycavy2e9zpx9mzeuekaahgw96ken0mzkcmgz40ljccwyrn88gxv2ewr"
    const filter = filterFromBech32(bech32);
    // filter => { ids: [...], authors: [...] }