Skip to content

Instantly share code, notes, and snippets.

@ilap
Last active October 17, 2019 10:48
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 ilap/6b5bc876c99266c7a0f071e9edbcddd5 to your computer and use it in GitHub Desktop.
Save ilap/6b5bc876c99266c7a0f071e9edbcddd5 to your computer and use it in GitHub Desktop.
JC
#
# Install: Add to the profile
#
# Usage: jc stake-get
#
alias jc='_() {
if [ -z "$*" ]
then
echo '\''usage: jc [Rest commands]
- stake get: Shows the current delegation info
- stake-pools get: Show the registered stake-pools id
- node stats get: Get node statistics
- message logs: Message logs
- settings get: Get the node settings
- network stats get: Network stats
- or any jcli REST subcommands you are familiar with.'\'' >&2
else
# --host can be amended by using
export JORMUNGANDR_RESTAPI_URL=http://YOURIP:YOURPORT/api
jcli rest v0 $* #--host "http://YOURIP:YOURPORT/api"
fi
}; _'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment