Last active
October 17, 2019 10:48
-
-
Save ilap/6b5bc876c99266c7a0f071e9edbcddd5 to your computer and use it in GitHub Desktop.
JC
This file contains 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
# | |
# 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