ndk 0.1.0-dev94 ndk: ^0.1.0-dev94 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);
}