So I’ve just launched my first Cardano ADA staking pool and I wanted to compile my links, most used commands and tricks into a single post that I could copy and reuse from, hoping this might be useful for others as well.
I’m calling this the Jormungandr jcli Cryptonomicon – my book of most used commands and tricks.
First of all, read Chris Graffagnino’s excellent tutorial which covers everything from setting up the Linux box at a very low level to creating your own staking pool, step by step.
Early pool admins had a very tough time configuring everything that Chris published on this post.
New staking pool admins have it much easier that these excellent tutorials are available.
Chats and Forums
Join the Cardano Forum if you haven’t and follow the Staking and Delegation section.
The Telegram chat can be hard to follow due to the large amount of messages. The Telegram search function is there to help you. Search for keywords like settings, networking, linux, vps, server setup and so on.
When you find something related to these topics, make sure to follow the users who mention them. A large percentage of users are also newbies but some of the folks on that channel are running the top staking pools and can give you extremely valuable advice. Be polite and ask your question clearly and you will get help.
Most of these commands are documented in the jormungandr REST page. (jcli is just a CLI tool for jormungandr). Notice that in most cases I just added my host details so I could copy and paste.
It is assumed you’re running these locally on the node’s host (127.0.0.1). I wouldn’t open the REST api endpoint to remote access for security reasons.
Check Connected Nodes
Assume port 3000. Substitute for different port.
netstat -tan | grep 3000
Show Node Stats
Shows most basic statistics for a node.
jcli rest v0 node stats get --host "http://127.0.0.1:3100/api"
View Node Message Log
Shows the node’s “mempool”. Fragments that are in the volatile memory either generated locally or received from the network.
jcli rest v0 message logs --host "http://127.0.0.1:3100/api"
Get Chain Tip
Get the latest block in your local blockchain. Useful to check if you’ve forked. If your tip hash is different from everyone else’s then you’ve likely gone down the wrong chain.
jcli rest v0 tip get --host "http://127.0.0.1:3100/api"
View Node Config
jcli rest v0 settings get --host "http://127.0.0.1:3100/api"
jcli rest v0 leaders get --host "http://127.0.0.1:3100/api"
jcli rest v0 leaders logs get --host "http://127.0.0.1:3100/api"
Pools / Staking
List staking pool ID’s
jcli rest v0 stake-pools get --host "http://127.0.0.1:3100/api"
Show stake details
jcli rest v0 stake get --host "http://127.0.0.1:3100/api"
Show pool details. Substitute your pool ID.
jcli rest v0 stake-pool get 9ffe3995e7d7bed68d677bd5daa0ce04c3a39839a5efd4752910397134f4c227 --host "http://127.0.0.1:3100/api"
Show network connections and connected host ID’s.
jcli rest v0 network stats get --host "http://127.0.0.1:3100/api"