nostril

A C cli tool for creating nostr events
git clone git://jb55.com/nostril
Log | Files | Refs | Submodules | README | LICENSE

commit 0392d6f10b2abf6c07d188250778b59d116d735a
parent 13985950fd7934b272944c1dbfe3a66d5aedbd6d
Author: cgi-bin/ <6095048+sven-hash@users.noreply.github.com>
Date:   Wed, 31 Aug 2022 12:39:27 +0200

readme: add a few more examples

Closes #10

Diffstat:
MREADME.md | 11+++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -19,9 +19,9 @@ $ sudo make install ## Usage usage: nostril [OPTIONS] - + OPTIONS - + --content the content of the note --dm <hex pubkey> make an encrypted dm to said pubkey. sets kind and tags. --envelope wrap in ["EVENT",...] for easy relaying @@ -72,3 +72,10 @@ Send a nip04 DM: $ ./nostril --envelope --dm <pubkey> --sec <key> --content "this is a secret" | websocat wss://relay.damus.io +Mine a pubkey: + + $ ./nostril --mine-pubkey --pow <difficulty> + +Reply to an event. nip10 compliant, includes the `thread_id`: + + $ ./nostril --envelope --sec <key> --content "this is reply message" --tag e <thread_id> --tag e <note_id> | websocat wss://relay.damus.io