Skip to content

Instantly share code, notes, and snippets.

@TravisMullen
Created May 6, 2018 06:01
Show Gist options
  • Save TravisMullen/c1730ac9694082362c351200e8044bc4 to your computer and use it in GitHub Desktop.
Save TravisMullen/c1730ac9694082362c351200e8044bc4 to your computer and use it in GitHub Desktop.
Is wallet staking status active.
#!/bin/bash -e
output=$(pivx-cli getstakingstatus | jq -r '.["staking status"]')
if [ "$output" == "true" ]; then
echo "staking is active"
exit 0
fi
echo "staking is NOT active"
exit 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment