ndk 0.1.0-dev99 ndk: ^0.1.0-dev99 copied to clipboard
Nostr Development Kit - the most performant lib for all your nostr usecases
Basic example #
Ndk ndk = Ndk(NdkConfig(
eventVerifier: Bip340EventVerifier(),
cache: MemCacheManager(),
));
NdkResponse response = ndk.requests.query(filters: [
Filter(kinds: [Nip01Event.TEXT_NODE_KIND], limit: 10)
]);
await for (final event in response.stream) {
print(event);
}