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
- Ndk.defaultConfig()
- Creates a new instance of Ndk with default configuration
- Ndk.emptyBootstrapRelaysConfig()
- Creates a new instance of Ndk with default configuration and empty bootstrap relays
Properties
- broadcast → Broadcast
-
Provides access to low-level Nostr broadcast/publish.
no setter
- 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
- nip05 → VerifyNip05
-
Verifies NIP-05 events
no setter
- nwc → Nwc
-
Nostr Wallet connect
no setter
- relays → RelayManager
-
Relay Manager
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
similar to nip65 but more generic, contact list relays can also be consideredno setter - zaps → Zaps
-
Zaps
no setter
Methods
-
destroy(
) → Future< void> - Close all transports on relay manager
-
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