AIONostr
Revision as of 22:02, 9 October 2023 by RobertBushman (talk | contribs)
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.