Skip to content

Commit

Permalink
add test curls to README and some useful aliases to .profile
Browse files Browse the repository at this point in the history
  • Loading branch information
alchemydc committed Aug 11, 2022
1 parent 87318df commit 62d9df3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@
- [zero to node](https://docs.pokt.network/home/node/tutorials/zero-to-node)
- [node setup docs](https://docs.pokt.network/home/node/setup)
* pruning, or lack thereof, and what to do about it: https://linktr.ee/leanpocket
* Test the RPC:
* `curl -X POST "http://$HOST:8081/v1/query/height"`
* `curl "https://$HOST:8081/v1"`




6 changes: 6 additions & 0 deletions roles/pokt_dev/templates/profile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@ export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin

alias status='curl -s http://localhost:55657/status'
alias wstatus='watch -n 10 "curl -s http://localhost:55657/status"'
alias peers='curl -s http://localhost:55657/net_info | jq .result.n_peers'
alias wpeers='watch -n 10 "curl -s http://localhost:55657/net_info | jq .result.n_peers"'

0 comments on commit 62d9df3

Please sign in to comment.