dcs on Nostr: The easiest way to send #nostr events from the command line: pip install aionostr ...
The easiest way to send #nostr events from the command line:
pip install aionostr
export NOSTR_RELAYS=wss://nostr.mom
export NOSTR_KEY=`aionostr gen | head -1`
aionostr send --content 'hello world'
Published at
2023-01-20 20:24:39Event JSON
{
"id": "8a33c8edaba2198e1e87b9feadce904e52d881ada9e4710e82339ab9c2d5818a",
"pubkey": "c7da62153485ecfb1b65792c79ce3fe6fce6ed7d8ef536cb121d7a0c732e92df",
"created_at": 1674246279,
"kind": 1,
"tags": [
[
"t",
"nostr"
]
],
"content": "The easiest way to send #nostr events from the command line:\n\n\npip install aionostr\n\n\nexport NOSTR_RELAYS=wss://nostr.mom \nexport NOSTR_KEY=`aionostr gen | head -1` \n\n\naionostr send --content 'hello world'\n\n",
"sig": "6f758d79ec34e62152cc4895be163248c1e1c7d6de94de1b666254a6fbddccf3e06184f0536dff8c5bb3026af52edece2ab702a6267576a5fa0284a7d66d2771"
}