The account-utxos
command in Mintlayer is used to list all the Unspent Transaction Outputs (UTXOs) owned by the currently selected account. This command allows for filtering and categorizing UTXOs based on type, lock status, and state.
account-utxos [UTXO_TYPE] [WITH_LOCKED] [UTXO_STATES]...
[UTXO_TYPE]
: Optional. Specifies the type of UTXO to list. By default, it lists all types. Possible values include all
, transfer
, lock-then-transfer
, create-stake-pool
, burn
, produce-block-from-stake
, create-delegation-id
, delegate-staking
. Default is all
.[WITH_LOCKED]
: Optional. Determines whether to include locked outputs in the list. Default is unlocked
. Possible values are any
, unlocked
, and locked
.[UTXO_STATES]...
: Optional. Specifies the state of the UTXOs to be listed. Default is confirmed
. Possible states include confirmed
, conflicted
, in-mempool
, inactive
, abandoned
.-h, --help
: Displays help information about the account-utxos
command.account-utxos
Running account-utxos
without any additional arguments returns a list of all UTXOs for the current account. An example output is as follows:
[
(
UtxoOutPoint {
id: Transaction(
Id<Transaction>{0x2a2667351dacca82f1ad8114ca3d69549c11e942df5f4499096ccf1f944289ff},
),
index: 0,
},
Transfer(
Coin(
Amount {
val: 5000000000000,
},
),
Address(
0x9312d1abcb73bd48f10debafca5c559766d14996,
),
),
),
(
UtxoOutPoint {
id: Transaction(
Id<Transaction>{0x2a2667351dacca82f1ad8114ca3d69549c11e942df5f4499096ccf1f944289ff},
),
index: 1,
},
Transfer(
Coin(
Amount {
val: 4999978400000,
},
),
Address(
0x64a7db036f2b4c1d4e5bb6d90a3c816a9fadc453,
),
),
),
]
This output details each UTXO's transaction ID, index, type, amount, and associated address.
Listing Specific Type of UTXOs:
account-utxos transfer unlocked confirmed
This command lists all transfer
type UTXOs that are unlocked and confirmed for the current account.