TrustedAssertions class

Trusted Assertions usecase (NIP-85)

Allows fetching pre-computed metrics from trusted service providers.

Constructors

TrustedAssertions({required Requests requests, required List<Nip85TrustedProvider> defaultProviders})

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

getAddressableMetrics(String eventAddress, {Set<Nip85Metric>? metrics, List<Nip85TrustedProvider>? providers}) Future<Nip85AddressableMetrics?>
Get addressable event metrics from trusted providers
getEventMetrics(String eventId, {Set<Nip85Metric>? metrics, List<Nip85TrustedProvider>? providers}) Future<Nip85EventMetrics?>
Get event metrics from trusted providers
getExternalIdMetrics(String identifier, {Set<Nip85Metric>? metrics, List<Nip85TrustedProvider>? providers}) Future<Nip85ExternalIdMetrics?>
Get external identifier metrics from trusted providers (NIP-73)
getUserMetrics(String pubkey, {Set<Nip85Metric>? metrics, List<Nip85TrustedProvider>? providers}) Future<Nip85UserMetrics?>
Get user metrics from trusted providers
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
streamAddressableMetrics(String eventAddress, {Set<Nip85Metric>? metrics, List<Nip85TrustedProvider>? providers}) Stream<Nip85AddressableMetrics>
Stream addressable event metrics from trusted providers
streamEventMetrics(String eventId, {Set<Nip85Metric>? metrics, List<Nip85TrustedProvider>? providers}) Stream<Nip85EventMetrics>
Stream event metrics from trusted providers
streamExternalIdMetrics(String identifier, {Set<Nip85Metric>? metrics, List<Nip85TrustedProvider>? providers}) Stream<Nip85ExternalIdMetrics>
Stream external identifier metrics from trusted providers (NIP-73)
streamUserMetrics(String pubkey, {Set<Nip85Metric>? metrics, List<Nip85TrustedProvider>? providers}) Stream<Nip85UserMetrics>
Stream user metrics from trusted providers
toString() String
A string representation of this object.
inherited

Operators

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