We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6fc3c30 + 5e829fe commit e3757eeCopy full SHA for e3757ee
cardano_clusterlib/query_group.py
@@ -739,5 +739,10 @@ def get_stake_pool_default_vote(
739
raw_output: str = self.query_cli(["stake-pool-default-vote", *cred_args]).strip().strip('"')
740
return raw_output
741
742
+ def get_ledger_peer_snapshot(self) -> dict[str, tp.Any]:
743
+ """Get the current snapshot of ledger peers."""
744
+ out: dict[str, tp.Any] = json.loads(self.query_cli(["ledger-peer-snapshot"])) or {}
745
+ return out
746
+
747
def __repr__(self) -> str:
748
return f"<{self.__class__.__name__}: clusterlib_obj={id(self._clusterlib_obj)}>"
0 commit comments