Nostr event store.
event(event: NostrEvent,opts?: { signal?: AbortSignal; },): Promise<void>
Add an event to the store (equivalent of EVENT
verb).
query(filters: NostrFilter[],opts?: { signal?: AbortSignal; },): Promise<NostrEvent[]>
Get an array of events matching filters.
optional
count(filters: NostrFilter[],opts?: { signal?: AbortSignal; },): Promise<NostrRelayCOUNT[2]>
Get the number of events matching filters (equivalent of COUNT
verb).
optional
remove(filters: NostrFilter[],opts?: { signal?: AbortSignal; },): Promise<void>
Remove events from the store. This action is temporary, unless a kind 5
deletion is issued.