@@ -59,7 +59,7 @@ def get_utxo(
59
59
Returns:
60
60
List[structs.UTXOData]: A list of UTxO data.
61
61
"""
62
- cli_args = ["utxo" , "--out-file" , "/dev/stdout " ]
62
+ cli_args = ["utxo" , "--output-json " ]
63
63
64
64
address_single = ""
65
65
sort_results = False
@@ -300,7 +300,7 @@ def get_gov_action_deposit(self, pparams: dict[str, tp.Any] | None = None) -> in
300
300
def get_stake_distribution (self ) -> dict [str , float ]:
301
301
"""Return current aggregated stake distribution per stake pool."""
302
302
# Stake pool values are displayed starting with line 2 of the command output
303
- result = self .query_cli (["stake-distribution" ]).splitlines ()[2 :]
303
+ result = self .query_cli (["stake-distribution" , "--output-text" ]).splitlines ()[2 :]
304
304
stake_distribution : dict [str , float ] = {}
305
305
for pool in result :
306
306
pool_id , stake = pool .split ()
@@ -309,7 +309,7 @@ def get_stake_distribution(self) -> dict[str, float]:
309
309
310
310
def get_stake_pools (self ) -> list [str ]:
311
311
"""Return the node's current set of stake pool ids."""
312
- stake_pools = self .query_cli (["stake-pools" ]).splitlines ()
312
+ stake_pools = self .query_cli (["stake-pools" , "--output-text" ]).splitlines ()
313
313
return stake_pools
314
314
315
315
def get_leadership_schedule (
@@ -366,6 +366,7 @@ def get_leadership_schedule(
366
366
unparsed = self .query_cli (
367
367
[
368
368
"leadership-schedule" ,
369
+ "--output-text" ,
369
370
"--genesis" ,
370
371
str (self ._clusterlib_obj .genesis_json ),
371
372
"--vrf-signing-key-file" ,
0 commit comments