Last active
January 29, 2020 19:27
-
-
Save jamiew/83f9768418827652d2dc947c3fc764d3 to your computer and use it in GitHub Desktop.
Fetch node score from Helium API
This file contains hidden or 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
#!/bin/sh | |
# requires jq, for manipulating JSON: | |
# brew install jq | |
# | |
# find your hotspot's address here: | |
# https://explorer.helium.foundation/api/hotspots/ | |
address="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | |
curl -s "https://explorer.helium.foundation/api/hotspots/$address" | jq '.data .score' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment