Tool for listing the current bitcoin IPv4 nodes

This commit is contained in:
Luca Deri
2020-01-08 22:14:34 +01:00
parent 3ba7667887
commit 3e66bbc5bc
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
#
# List all the current bittorrent nodes
#
# NOTE: JQ can be found at https://stedolan.github.io/jq/
curl -s -H "Accept: application/json; indent=4" https://bitnodes.earn.com/api/v1/snapshots/latest/ | jq -r '.nodes|keys[] as $k | "\($k)"' | grep -v onion | grep -v ']' | cut -d ':' -f 1