This is a collection of common commands often used when working with a QT wallet, to create, start and manage master nodes.
The purpose of this cheat sheet is to act as a go-to for QT wallet commands in general, it does not serve to be specific to any particular master node type. You should always refer to the node guide for specific commands which may be required.
The following commands are executed in debug console which is normally accessed > Tools > Debug Console
Collateral
Command | Description |
---|---|
| The command can be run within debug to provide the address to send collateral to |
Masternode Registration & Management
Command | Description |
---|---|
masternode ouputs | This command will provide you with the collateral hash and the collateral index |
masternode genkey | Will generate a new masternodepriv key |
masternode list-conf | Provides information regarding the configured master node from masternode.conf provides alias, address, privateKey, txHash, outputIndex and status |
Wallet Sync Status
Command | Description |
---|---|
getblockcount | Displays the block height |
getblockchaininfo | Displays various information regarding the chain including chain, blocks headers etc |
General Wallet Commands
Command | Description |
---|---|
getbalance | Provides a balance of the wallet |
getwalletinfo | Overview of wallet info including version, balance and transmit counts etc |
help | Further information on the complete commands available and how to execute them for the given wallet |
Network
Command | Description |
---|---|
addnode "node" "add|remove|onetry" | To add or remove a node from the add node list. Onetry will attempt connection to a node once. |
clearbanned | To clear all banned IP’s |
disconnectnode "node" | Will immediately close connection with the detailed node |
getaddednodeinfo dns "node" | Returns information about the given added node, or all added nodes (note that onetry addnodes are not listed here) If DNS is false, only a list of added nodes will be provided, otherwise, connected information will also be available |
getconnectioncount | Returns the number of connections to other nodes |
getnettotals | Returns information about network traffic, including bytes in, bytes out, and current time |
getnetworkinfo | Returns an object containing various state info regarding P2P networking |
getpeerinfo | Returns data about each connected network node as a JSON array of objects |
listbanned | List all banned IPs/Subnets |
ping | Requests that ping is sent to all nodes |
setban "ip(/netmask)" "add|remove" (bantime) (absolute) | Attempts add or remove a IP/Subnet from the banned list |