Skip to content

Instantly share code, notes, and snippets.

View vishalxl's full-sized avatar
💭
I may be slow to respond.

Vishal vishalxl

💭
I may be slow to respond.
View GitHub Profile
@vishalxl
vishalxl / Nostr Pubkeys And Relays.md
Last active August 30, 2022 16:38
Nostr Accounts, Relays and Ban Bot Account Lists

Nostr accounts to follow

Name Public Key
Damus 3efdaebb1d8923ebd99c9e7ace3b4194ab45512e2be79c1b7d68d9243e0d2681
jb55 (Damus.io) 32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245
fiatjaf 3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d
unclebobmartin 2ef93f01cd2493e04235a6b87b10d3c4a74e2a7eb7c3caf168268f6af73314b5
cameri 22e804d26ed16b68db5259e78449e96dab5d464c8f470bda3eb1a70467f2c793
@vishalxl
vishalxl / GetNostrEvents.dart
Last active February 18, 2023 04:34
Get Nostr Events from a Relay
import 'dart:io';
import 'dart:convert';
String serverUrl = 'wss://nostr-pub.wellorder.net';
var userPublickey = "3235036bd0957dfb27ccda02d452d7c763be40c91a1ac082ba6983b25238388c";
var userSubReq = '["REQ","latest",{ "authors": ["$userPublickey"], "limit": 5 } ]';
class EventData {
String id;
String pubkey;
@vishalxl
vishalxl / Nostr Through Command Line.md
Last active April 12, 2023 04:07
Nostr commands for Bash Terminal on Linux ( also available on Windows 10 as Ubuntu WSL)

Read Events On Command Line

Print all events:

This would print the latest 100 events:

echo '["REQ", "a", {"limit": 100} ]' | websocat wss://nostr-pub.wellorder.net

Pretty print all events