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 EventVerifier eventVerifier, required List<EventFilter> eventOutFilters})
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

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, int? timeout, 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

Constants

DEFAULT_QUERY_TIMEOUT → const int