aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-08-29 12:29:57 -0400
committerluigi1111 <luigi1111w@gmail.com>2021-08-29 12:29:57 -0400
commitf12e75b5e4b11d73a4b9e7f159eaa08c7bd4abfa (patch)
treeb8a03775fcabf08396f45f3cf419b8c8ac816b73 /utils
parentMerge pull request #7894 (diff)
parentpython-rpc: add missing python api for new freeze/thaw/frozen RPC (diff)
downloadmonero-f12e75b5e4b11d73a4b9e7f159eaa08c7bd4abfa.tar.xz
Merge pull request #7888
3c15eb8 python-rpc: add missing python api for new freeze/thaw/frozen RPC (moneromooo-monero)
Diffstat (limited to 'utils')
-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)