Skip to content

Commit 3be650f

Browse files
authored
Merge pull request #328 from input-output-hk/get-future-pparams
Get future pparams
2 parents 9054c54 + 618a26b commit 3be650f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cardano_clusterlib/query_group.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,5 +709,10 @@ def get_treasury(self) -> int:
709709
"""Get the treasury value."""
710710
return int(self.query_cli(["treasury"]))
711711

712+
def get_future_pparams(self) -> dict[str, tp.Any]:
713+
"""Get the future protocol parameters that will apply at the next epoch."""
714+
out: dict[str, tp.Any] = json.loads(self.query_cli(["future-pparams"])) or {}
715+
return out
716+
712717
def __repr__(self) -> str:
713718
return f"<{self.__class__.__name__}: clusterlib_obj={id(self._clusterlib_obj)}>"

0 commit comments

Comments
 (0)