Requests class

A class that handles low-level Nostr network requests and subscriptions.

Constructors

Requests({required GlobalState globalState, required CacheRead cacheRead, required CacheWrite cacheWrite, required NetworkEngine networkEngine, required RelayManager relayManager, required EventVerifier eventVerifier, required List<EventFilter> eventOutFilters, required Duration defaultQueryTimeout})
Creates a new Requests instance

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

closeAllSubscription() Future<void>
Close all subscriptions
closeSubscription(String subId) Future<void>
Closes a Nostr network subscription
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query({required List<Filter> filters, String name = '', RelaySet? relaySet, bool cacheRead = true, bool cacheWrite = true, Duration? timeout, dynamic timeoutCallbackUserFacing()?, dynamic timeoutCallback()?, Iterable<String>? explicitRelays, int? desiredCoverage}) NdkResponse
Performs a low-level Nostr query
requestNostrEvent(NdkRequest request) NdkResponse
Performs a low-level Nostr event request
subscription({required List<Filter> filters, String name = '', String? id, RelaySet? relaySet, bool cacheRead = false, bool cacheWrite = false, Iterable<String>? explicitRelays, int? desiredCoverage}) NdkResponse
Creates a low-level Nostr subscription
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited