diff --git a/make_post_sell/lib/crypto_clients.py b/make_post_sell/lib/crypto_clients.py index 0c75266..1e592c6 100644 --- a/make_post_sell/lib/crypto_clients.py +++ b/make_post_sell/lib/crypto_clients.py @@ -310,6 +310,10 @@ class DogecoinClient: """Get current block height.""" return self._call("getblockcount") + def getblockhash(self, block_height: int) -> str: + """Get block hash for a specific block height.""" + return self._call("getblockhash", [block_height]) + def getnetworkinfo(self) -> Dict[str, Any]: """Get network status information.""" return self._call("getnetworkinfo") @@ -435,6 +439,10 @@ class MockDogecoinClient: def getblockcount(self) -> int: return 5500000 # Mock block height + def getblockhash(self, block_height: int) -> str: + """Mock block hash for testing.""" + return f"mock_block_hash_{block_height}" + def getnetworkinfo(self) -> Dict[str, Any]: return { "version": 1140200,