diff options
author | luigi1111 <luigi1111w@gmail.com> | 2021-06-11 12:28:01 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2021-06-11 12:28:01 -0500 |
commit | ab7df49331a4356d7102119ede036b0d73295905 (patch) | |
tree | f0041e8b25129a4b357e18f962d3c8c71fdf7c15 | |
parent | Merge pull request #7661 (diff) | |
parent | python-rpc: add missing python api for new freeze/thaw/frozen RPC (diff) | |
download | monero-ab7df49331a4356d7102119ede036b0d73295905.tar.xz |
Merge pull request #7751
b8b054c python-rpc: add missing python api for new freeze/thaw/frozen RPC (moneromooo-monero)
-rw-r--r-- | utils/python-rpc/framework/wallet.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/utils/python-rpc/framework/wallet.py b/utils/python-rpc/framework/wallet.py index aca7c82bb..02084620c 100644 --- a/utils/python-rpc/framework/wallet.py +++ b/utils/python-rpc/framework/wallet.py @@ -1099,3 +1099,36 @@ class Wallet(object): 'id': '0' } return self.rpc.send_json_rpc_request(scan_tx) + + def freeze(self, key_image): + freeze = { + 'method': 'freeze', + 'jsonrpc': '2.0', + 'params' : { + 'key_image': key_image, + }, + 'id': '0' + } + return self.rpc.send_json_rpc_request(freeze) + + def thaw(self, key_image): + thaw = { + 'method': 'thaw', + 'jsonrpc': '2.0', + 'params' : { + 'key_image': key_image, + }, + 'id': '0' + } + return self.rpc.send_json_rpc_request(thaw) + + def frozen(self, key_image): + frozen = { + 'method': 'frozen', + 'jsonrpc': '2.0', + 'params' : { + 'key_image': key_image, + }, + 'id': '0' + } + return self.rpc.send_json_rpc_request(frozen) |