Mintlayer Wallet CLI Guide
This page lists all commands available in the interactive wallet-cli REPL. Type help inside the wallet to see the list at any time, or help <command> for details on a specific command.
Commands are grouped by function. Commands marked with (cold) are available without a node connection (using --cold-wallet).
Table of Contents
Wallet Management
| Command |
Description |
| wallet-create |
(cold) Create a new wallet. This will create a new file without scanning the blockchain. |
| wallet-recover |
(cold) Recover a wallet. This will create a new wallet file and scan the blockchain for associated transactions. |
| wallet-open |
(cold) Open an existing wallet file. |
| wallet-close |
(cold) Close the currently opened wallet file. |
| wallet-info |
(cold) Obtain certain information about the wallet, such as the number of accounts and their names. |
| wallet-encrypt-private-keys |
(cold) Encrypts the private keys with a new password, expects the wallet to be unlocked. |
| wallet-disable-private-keys-encryption |
(cold) Completely and totally remove any existing encryption, expects the wallet to be unlocked. Warning: After this, your wallet file will be USABLE BY ANYONE without a password. |
| wallet-unlock-private-keys |
(cold) Unlocks the private keys for usage. |
| wallet-lock-private-keys |
(cold) Locks the private keys so they can't be used until they are unlocked again. |
| wallet-show-seed-phrase |
(cold) Show the seed phrase for the loaded wallet if it has been stored. |
| wallet-purge-seed-phrase |
(cold) Delete the seed phrase from the loaded wallet's database, if it has been stored. |
| wallet-set-lookahead-size |
(cold) Set the lookahead size for key generation. |
| wallet-rescan |
Rescan the blockchain and re-detect all operations related to the selected account in this wallet. |
| wallet-sync |
Force the wallet to scan the remaining blocks from node until the tip is reached. |
Accounts
Addresses
Standalone Addresses
Standalone addresses are watch-only or independently-managed addresses added to the wallet without deriving them from the wallet's seed.
Staking and Pools
A minimum pledge of 40,000 TML is required to create a staking pool.
| Command |
Description |
| staking-start |
Start staking, assuming there are staking pools in the selected account in this wallet. |
| staking-stop |
Stop staking, assuming there are staking pools staking currently in the selected account in this wallet. |
| staking-status |
Show the staking status for the currently selected account in this wallet. |
| staking-pool-balance |
Obtain the balance of a staking pool. |
| staking-list-pools |
List ids of pools that are controlled by the selected account in this wallet. |
| staking-list-owned-pools-for-decommission |
List pools that can be decommissioned by the selected account in this wallet. |
| staking-list-created-block-ids |
List the blocks created by the selected account in this wallet through staking/mining/etc. |
| staking-create-pool |
Create a staking pool. The pool will be capable of creating blocks and gaining rewards, as well as taking delegations from other users. |
| staking-decommission-pool |
Decommission a staking pool, given its id. This assumes that the decommission key is owned by the selected account in this wallet. |
| staking-decommission-pool-request |
Create a request to decommission a pool. This assumes that the decommission key is owned by another wallet. |
| staking-new-vrf-public-key |
(cold) Issue a new staking VRF (Verifiable Random Function) key for this account. |
| staking-show-vrf-public-keys |
(cold) Show the issued staking VRF (Verifiable Random Function) keys for this account. |
| staking-show-legacy-vrf-key |
(cold) Shows the legacy VRF key that uses an abandoned derivation mechanism. |
| staking-sweep-delegation |
Sweep all the coins from a delegation to a given address. The wallet will automatically calculate the required fees. |
Delegations
| Command |
Description |
| delegation-create |
Create a delegation to a given pool id and the owner address/destination. |
| delegation-list-ids |
List delegation ids controlled by the selected account in this wallet, with their balances. |
| delegation-stake |
Send coins to a delegation id to be staked. |
| delegation-withdraw |
Send coins from a delegation id (that you own) to stop staking them. Note that stopping the delegation requires a lock period. |
Tokens and NFTs
Orders
| Command |
Description |
| order-create |
Create an order for exchanging one currency for another. |
| order-fill |
Fill an order (partially or fully) with the asked currency. |
| order-freeze |
Freeze an order to prevent further fills. |
| order-conclude |
Conclude an order and withdraw accumulated funds. |
| order-list-own |
List orders whose conclude key is owned by the selected account. |
| order-list-all-active |
List all active (non-concluded, non-frozen) orders, with optional currency filters. |
Transactions
| Command |
Description |
| utxo-spend |
Spend a specific UTXO, moving its funds to a given address. |
| transaction-compose |
Compose a new transaction from the specified outputs and selected utxos. |
| transaction-abandon |
Abandon an unconfirmed transaction in the wallet database, and make the consumed inputs available to be used again. |
| transaction-list-pending |
List the pending transactions that can be abandoned. |
| transaction-list-by-address |
List transactions owned by this account that have already been included in a block, with an optional address filter. |
| transaction-get |
Get a transaction from the wallet, if present. |
| transaction-get-raw |
Get a transaction from the wallet, if present, as hex encoded raw transaction. |
| transaction-get-signed-raw |
Get a signed transaction from the wallet, if present, as hex encoded raw transaction. |
| transaction-create-from-cold-input |
Creates a transaction that spends from a specific address, and returns the change to the same address (unless one is specified), without signature. |
| transaction-inspect |
Print the summary of a transaction. |
HTLC
Challenge Signing
Node
These commands interact with the connected Mintlayer node.
Info and Control
Peers
REPL and Miscellaneous
| Command |
Description |
| config-broadcast |
Configure broadcasting to Mempool to yes or no. When set to no, transactions are returned as hex instead of being submitted automatically; use node-submit-transaction to broadcast manually. |
| version |
(cold) Print the version of the wallet software and possibly the git commit hash, if found. |
| exit |
(cold) Exit the wallet. |
| rpc-shutdown-and-exit |
Shutdown the RPC interface or the remote wallet it is connected to and exit the wallet. |
| history-print |
(cold) Print command history in the wallet for this execution. |
| history-clear |
(cold) Clear command history for this execution. |
| screen-clear |
(cold) Clear screen. |
help |
(cold) Print this message or the help of the given subcommand(s). |