diff options
Diffstat (limited to 'utils/bitcoinnodes.sh')
-rwxr-xr-x | utils/bitcoinnodes.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/bitcoinnodes.sh b/utils/bitcoinnodes.sh new file mode 100755 index 000000000..033a76713 --- /dev/null +++ b/utils/bitcoinnodes.sh @@ -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 |