Check if an event matches a single NIP-01 filter. Pure function — no side effects.
The event to check
The filter to match against
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' Copy
import { matchesFilter } from '@kehto/runtime';matchesFilter(event, { kinds: [1], authors: ['abc'] });// true if event.kind === 1 and event.pubkey starts with 'abc'
Check if an event matches a single NIP-01 filter. Pure function — no side effects.