Documentation
    Preparing search index...

    Function matchesFilter

    • Check if an event matches a single NIP-01 filter. Pure function — no side effects.

      Parameters

      Returns boolean

      True if the event matches the filter

      import { matchesFilter } from '@kehto/runtime';

      matchesFilter(event, { kinds: [1], authors: ['abc'] });
      // true if event.kind === 1 and event.pubkey starts with 'abc'