aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2021-06-11 06:59:36 +0000
committerselsta <selsta@sent.at>2021-08-24 00:25:10 +0200
commit3c15eb8e81bd5479070039e22287f0041e2fbc35 (patch)
treed33401dd3176c5ff81cd9c8155176f2c76d53149
parentMerge pull request #7882 (diff)
downloadmonero-3c15eb8e81bd5479070039e22287f0041e2fbc35.tar.xz
python-rpc: add missing python api for new freeze/thaw/frozen RPC
-rw-r--r--utils/python-rpc/framework/wallet.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/utils/python-rpc/framework/wallet.py b/utils/python-rpc/framework/wallet.py
index d97c24143..da49e9317 100644
--- a/utils/python-rpc/framework/wallet.py
+++ b/utils/python-rpc/framework/wallet.py
@@ -1088,3 +1088,36 @@ class Wallet(object):
'id': '0'
}
return self.rpc.send_json_rpc_request(get_version)
+
+ 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)