NostrRequest class

NostrRequest is a request to subscribe to a set of events that match a set of filters with a given subscriptionId.

Constructors

NostrRequest({required List<NostrFilter> filters, String? subscriptionId})
NostrRequest is a request to subscribe to a set of events that match a set of filters with a given subscriptionId.
NostrRequest.deserialized(dynamic input)
Deserialize a request
factory

Properties

filters List<NostrFilter>
A list of filters that the request will match.
final
hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
subscriptionId String?
The subscription ID of the request.
getter/setter pair

Methods

copyWith({String? subscriptionId, List<NostrFilter>? filters}) NostrRequest
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialized({String? subscriptionId}) String
Serialize the request to send it to the remote relays websockets.
toString() String
A string representation of this object.
inherited

Operators

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