Monero CLI: How to Check Your Wallet Balance via Command Line

Monero CLI: How to Check Your Wallet Balance via Command Line

Privacy-focused digital currencies have transformed how individuals manage their finances online, and Monero (XMR) stands at the forefront of this movement. While many users rely on graphical wallets, the Monero command-line interface (CLI) offers powerful control, automation capabilities, and a deeper understanding of how your funds work. One of the most fundamental actions you can perform through the CLI is checking your wallet balance — a simple yet essential task for every Monero holder.

This article walks you through everything you need to know about viewing your balance using the Monero CLI wallet, whether you are a beginner exploring the command line for the first time or an experienced user seeking efficient shortcuts.

What Is the Monero CLI Wallet?

The Monero CLI wallet is a text-based interface that communicates directly with the Monero blockchain. Unlike graphical wallets such as the official GUI or MyMonero, the CLI runs entirely in a terminal window, giving users precise control over transactions, address book entries, and account management.

Although the interface may appear intimidating at first, the CLI is favored by privacy advocates, developers, and advanced holders because it:

  • Uses minimal system resources, making it ideal for servers, Raspberry Pi setups, and remote nodes.
  • Offers full scripting and automation, allowing users to integrate balance checks into custom workflows.
  • Avoids unnecessary background services, reducing potential attack surfaces.
  • Provides transparent feedback on every operation, including network synchronization and transaction history.

Preparing to Check Your Balance

Before running any balance commands, your wallet must be fully synchronized with the Monero network. The blockchain is large and privacy-oriented, meaning downloads can take considerable time on first use.

To start the CLI wallet, navigate to the directory containing the monero-wallet-cli binary and launch it:

./monero-wallet-cli --wallet-file yourwalletname

You will be prompted for your wallet password. Once authenticated, the wallet begins connecting to a daemon (either local or remote) and syncs the blockchain. Wait until the prompt shows your wallet has reached a synchronized state before checking balances.

How to View Your Balance in the Monero CLI

Once your wallet is open and synchronized, viewing your balance requires just a few keystrokes. The CLI interface automatically displays basic balance information at the top of the screen, but you can request specific details using built-in commands.

The simplest method:

  • Type balance and press Enter.
  • The wallet will return your total balance, unlocked balance, and any subaccount balances if you have multiple accounts.

For more detailed information:

  • Type show_balance to see a formatted summary of all subaddresses, including their individual balances.
  • Use balance_detail to view per-subaddress balances for each account in your wallet.

The output typically looks similar to this:

Balance: 12.500000000000, unlocked balance: 10.000000000000

Remember that the unlocked balance represents funds available for immediate spending, while the total balance includes recently received transactions still subject to the network's mandatory lock period (typically 10 blocks).

Practical Tips for Managing Your Balance via CLI

Working with the Monero CLI becomes significantly easier once you adopt a few useful habits. Below are practical recommendations for users who frequently check their wallet balance:

  • Save frequently used commands as aliases. Add shortcuts like alias bal="balance" to your shell profile or the wallet's startup script.
  • Use the refresh command before checking balances to ensure the wallet has fetched the latest blockchain data.
  • Connect to a remote node using the --daemon-address flag if you prefer not to run a full local node. This saves disk space and sync time.
  • Enable verbose output by adjusting your terminal window size, as the CLI automatically shows balance information at the top of the screen when the window is tall enough.
  • Export balance snapshots for accounting purposes by piping the output of show_balance into a text file: show_balance > balance_snapshot.txt.
  • Monitor multiple subaddresses by structuring incoming transactions across different subaddresses for better privacy and organization.
  • Always lock your wallet using the lock command when stepping away from your terminal, especially on shared systems.

Troubleshooting Common Balance Issues

Sometimes the displayed balance may not match your expectations. Here are common scenarios and how to address them:

  • Balance appears zero after receiving funds: Your wallet may still be syncing. Run refresh and wait for completion.
  • Funds appear locked: Monero enforces a 10-block lock on incoming transactions. Wait for approximately 20 minutes after receipt for funds to become spendable.
  • Discrepancies between total and unlocked balance: This is normal behavior reflecting pending transactions, but unusually large gaps may indicate synchronization problems.
  • Wallet cannot connect to daemon: Verify your internet connection, check the daemon address, or restart the local monerod process if running your own node.

Conclusion

Checking your balance through the Monero CLI is one of the simplest yet most empowering tasks you can perform as a privacy-conscious cryptocurrency user. The command-line approach not only gives you instant access to your funds but also deepens your understanding of how Monero's privacy features operate under the hood.

Whether you are running a full node at home, managing cold storage on an air-gapped machine, or simply prefer the efficiency of command-line tools, mastering balance checks is the first step toward full CLI proficiency. As you grow more comfortable, you can explore advanced features like automated balance monitoring, custom transaction scripts, and integration with monitoring tools — all while enjoying the unmatched privacy that Monero provides.

← Back to blog