Merge pull request #7888

3c15eb8 python-rpc: add missing python api for new freeze/thaw/frozen RPC (moneromooo-monero)
This commit is contained in:
luigi1111 2021-08-29 12:29:57 -04:00
commit f12e75b5e4
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010
1 changed files with 33 additions and 0 deletions

View File

@ -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)