-
Notifications
You must be signed in to change notification settings - Fork 33
CLI Commands
To use the CLI:
cd mmx-node
source ./activate.sh
For Windows: Use the shortcut in the start menu or manually run mmx_cmd.cmd
from a terminal/command prompt.
To run any mmx commands (except mmx wallet create), the node needs to be running. See Getting Started to read on how to start it.
To check on the node: mmx node info
To check on the peers: mmx node peers
To check on a transaction: mmx node tx <txid>
To check the balance of an address: mmx node balance <address>
To check the history of an address: mmx node history <address> [since]
To dump a contract: mmx node get contract <address>
To dump a transaction: mmx node get tx <txid>
To dump a block: mmx node get block <height>
To dump a block header: mmx node get header <height>
To force a re-sync: mmx node sync
To get connected peers: mmx node get peers
To check your balance: mmx wallet show
To show wallet activity: mmx wallet log
To send coins: mmx wallet send -a 1.234 -t <address>
To get a specific receiving address: mmx wallet get address <index>
To show wallet activity since height: mmx wallet log <since>
To show wallet activity for last N heights: mmx wallet log -N
To get the mnemonic seed words from a wallet: mmx wallet get seed
To use a non-default wallet specify -j <index>
with above commands (at the end).
To check on the farm: mmx farm info
To add plot directories: mmx farm add <dir>
To remove plot directories: mmx farm remove <dir>
To show plot directories: mmx farm get dirs
To get total space in bytes: mmx farm get space
To reload plots: mmx farm reload