The account-balance
command in Mintlayer is utilized to retrieve the total balance of the currently selected account in the wallet. This command offers options to include different categories of balances, such as locked coins.
account-balance [WITH_LOCKED] [UTXO_STATES]...
[WITH_LOCKED]
: Optional. Determines whether to include locked outputs in the balance calculation. Locked outputs are those that cannot be spent immediately and require time to mature. Default is unlocked
. Possible values are any
, unlocked
, and locked
.[UTXO_STATES]...
: Optional. Specifies the state of UTXOs to be included in the balance calculation. Default is confirmed
. Possible states include confirmed
, conflicted
, in-mempool
, inactive
, abandoned
.-h, --help
: Displays help information about the account-balance
command.Checking the Total Confirmed and Unlocked Balance:
account-balance
This command shows the total balance of the account, considering only confirmed and unlocked UTXOs.
Checking Balance Including Locked and Unconfirmed UTXOs:
account-balance any in-mempool
This command calculates the account balance, including all UTXOs (even locked ones) and those in the mempool (unconfirmed).