diff --git a/monero/backends/jsonrpc.py b/monero/backends/jsonrpc.py index 8dcf2b9..81d7277 100644 --- a/monero/backends/jsonrpc.py +++ b/monero/backends/jsonrpc.py @@ -267,6 +267,7 @@ class JSONRPCWallet(object): 'height': data.get('height', data.get('block_height')) or None, 'timestamp': datetime.fromtimestamp(data['timestamp']) if 'timestamp' in data else None, 'blob': data.get('blob', None), + 'confirmations': data.get('confirmations', None) }) def export_outputs(self): diff --git a/monero/transaction.py b/monero/transaction.py index 0d11cd9..8f4f5fe 100644 --- a/monero/transaction.py +++ b/monero/transaction.py @@ -70,6 +70,7 @@ class Transaction(object): timestamp = None key = None blob = None + confirmations = None def __init__(self, **kwargs): self.hash = kwargs.get('hash', self.hash) @@ -78,6 +79,7 @@ class Transaction(object): self.timestamp = kwargs.get('timestamp', self.timestamp) self.key = kwargs.get('key', self.key) self.blob = kwargs.get('blob', self.blob) + self.confirmations = kwargs.get('confirmations', self.confirmations) def __repr__(self): return self.hash