Ndk class

Main entry point for the NDK (Nostr Development Kit) library.

This file contains the primary class Ndk which provides access to various Nostr-related functionalities/usecases and manages the global state of the application.

Constructors

Ndk(NdkConfig config)
Creates a new instance of Ndk with the given config

Properties

config NdkConfig
Configuration for the NDK instance
final
follows Follows
Handles operations related to user follows
no setter
hashCode int
The hash code for this object.
no setterinherited
lists Lists
Manages various types of lists in the Nostr network
no setter
metadata Metadatas
user metadata operations
no setter
relays RelayManager
no setter
relaySets RelaySets
calculate relay set
no setter
requests Requests
Provides access to low-level Nostr requests.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userRelayLists UserRelayLists
user relay lists usecase
no setter

Methods

blockedRelays() List<String>
broadcastDeletion(String eventId, Iterable<String> relays, EventSigner signer) Future<Nip01Event>
broadcastEvent(Nip01Event event, Iterable<String> broadcastRelays, {EventSigner? signer}) Future<void>
broadcastReaction(String eventId, Iterable<String> relays, {String reaction = "+"}) Future<Nip01Event>
changeEventSigner(EventSigner? newEventSigner) → dynamic
Changes the event signer used by the NDK instance
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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