AIONostr: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 47: | Line 47: | ||
--dm TEXT pubkey to send dm | --dm TEXT pubkey to send dm | ||
--help Show this message and exit. | --help Show this message and exit. | ||
$ python bob_test.py --help | |||
Usage: bob_test.py [OPTIONS] COMMAND [ARGS]... | |||
Console script for aionostr. | |||
Options: | |||
--help Show this message and exit. | |||
Commands: | |||
bench | |||
gen Generate a private/public key pair | |||
get Get any nostr event | |||
make-nip19 Create nip-19 string for given object id | |||
mirror Mirror a query from source relays to the target relay | |||
query Run a query once and print events | |||
send Send an event to the network | |||
</pre> | </pre> |
Revision as of 22:03, 9 October 2023
Links
Install
Installing on a node that is already running Strfry, so basic system setup is done.
sudo apt install python3-venv pip3 install virtualenv git clone https://github.com/davestgermain/aionostr cd aionostr python3 -m venv bobenv source ./bobenv/bin/activate
Test Run
Make a tunnel
ssh -L 7777:127.0.0.1:7777 admin@52.11.172.130 -N
Test success:
$ python bob_test.py send -r ws://localhost:7777 --content "hello" --kind 1 --private-key nsec1dgg7d6e0g2484twl9ygntc24ueehm44frrc8rc93vcvun04gmp9qgufd4g 2d88da29787d5d2a9553a645dc65a976bc7022bca36ba004fbbb0862cd0ccfd7 nevent1qqszmzx699u86hf2j4f6v3wuvk5hd0rsy272x6aqqnamkzrze5xvl4cpzdmhxw309akx7cmpd35x7um58gmnwdehvc5hs3
Docs:
$ python bob_test.py send --help Usage: bob_test.py send [OPTIONS] Send an event to the network private key can be set using environment variable NOSTR_KEY Options: -r TEXT relay url -v, --verbose verbose results --content TEXT content --kind INTEGER kind --created INTEGER created_at --pubkey TEXT public key --tags TEXT tags --private-key TEXT private key --dm TEXT pubkey to send dm --help Show this message and exit. $ python bob_test.py --help Usage: bob_test.py [OPTIONS] COMMAND [ARGS]... Console script for aionostr. Options: --help Show this message and exit. Commands: bench gen Generate a private/public key pair get Get any nostr event make-nip19 Create nip-19 string for given object id mirror Mirror a query from source relays to the target relay query Run a query once and print events send Send an event to the network