Close a scoped relay connection.
Whether a relay pool is available.
Open a scoped relay connection (NIP-29 groups).
Publish an event to relays.
Async adapters return a promise that settles only after the transport has accepted or rejected the publish.
Publish to a scoped relay.
Async adapters settle the returned promise after transport acceptance. Returns false if no active scoped relay or publication fails.
Select relay URLs appropriate for the given filters.
Subscribe to events from relays matching the given filters. The callback receives either 'EOSE' (end of stored events) or a NostrEvent. Returns a handle that can cancel the subscription.
OptionalrelayUrls: string[]Track a subscription key for lifecycle management.
Untrack and clean up a subscription.
Abstract relay pool — runtime uses this to subscribe to and publish events on real Nostr relays. Implementor wraps their relay library.