Skip to content

Instantly share code, notes, and snippets.

@mikeyb
Created January 30, 2017 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeyb/124741675f990640fca7cb081c0ae3cf to your computer and use it in GitHub Desktop.
Save mikeyb/124741675f990640fca7cb081c0ae3cf to your computer and use it in GitHub Desktop.
#!/bin/bash
read -s KEY
curl "http://localhost:7733/api/v1/mining/stop/${KEY// /%20}?api_key=YOURAPIKEY"
sleep 2
curl -X POST --header 'Content-Type: application/x-www-form-urlencoded' --header 'Accept: application/json' 'http://localhost:7733/api/v1/mining/info?api_key=YOURAPIKEY'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment