Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.44 KB

additional_cmds.md

File metadata and controls

46 lines (32 loc) · 1.44 KB

Additional Commands

As per the documentation on the Theta site, you can individually run the commands as we've done in the get_stake_address.sh script.

Depending on your installation type, you can execute the commands as follows:

Docker / Docker-Compose

Query using the status command:

docker exec theta_guardian_node ./bin/thetacli query status

Query using the guardian command:

docker exec theta_guardian_node ./bin/thetacli query guardian

To show a running log and monitor the output of the Guardian node in realtime:

docker logs -f theta_guardian_node

To show all the Guardian node output and print it in console:

docker logs theta_guardian_node

Kubernetes

Query using the status command:

kubectl exec --namespace theta pod/$(kubectl get pod --namespace theta -o jsonpath="{.items[0].metadata.name}") -- ./bin/thetacli query status

Query using the guardian command:

kubectl exec --namespace theta pod/$(kubectl get pod --namespace theta -o jsonpath="{.items[0].metadata.name}") -- ./bin/thetacli query guardian

Some sample output is shown below for the status/guardian commands, respectively:

CLI Query Guardian Command

CLI Query Guardian Status