Created
April 18, 2023 16:29
-
-
Save koteitan/b4559670313d5fcb3d3b486223a5a697 to your computer and use it in GitHub Desktop.
relay-listing jq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo '["REQ","345",{"authors":["'$mypub'"],"kinds":[3],"limit":1}]' | websocat $prirelay |\ | |
head -1 | jq -r .[2].content | jq -r 'keys_unsorted[] as $k | [$k, .[$k]] | .[0]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment