mirror of
https://github.com/vishalxl/nostr_console.git
synced 2025-03-20 06:41:43 +01:00
1.4 KiB
1.4 KiB
nostr_console
Nostr console client using Dart
Use
Usage:
usage: dart run bin/nostr_console.dart [OPTIONS]
OPTIONS
--prikey <private key> The hex private key of user whose events and feed are shown. Also used to sign events
sent. Default is a hard-coded well known private key. -p is same.
--relay <relay wss url> The relay url that is used as main relay. Default is wss://nostr-relay.untethr.me . -r is same.
--days <N> The latest number of days for which events are shown. Default is 1. -d is same.
--request <REQ string> This request is sent verbatim to the default relay. It can be used to recieve all events
from a relay. If not provided, then events for default or given user are shown. -q is same.
To get ALL the latest messages for last 3 days:
dart run bin/nostr_console.dart --request=`echo "[\"REQ\",\"l\",{\"since\":$(date -d '-3 day' +%s)}]"`
To get the latest messages for user with private key K ( that is also used to sign posted/sent messages):
dart run bin/nostr_console.dart --prikey=K
To get the latest messages for user with private key K for last 4 days ( default is 1) from relay R:
dart run bin/nostr_console.dart --prikey=K --relay=R --days=4