mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
python-rpc: add missing python api for new freeze/thaw/frozen RPC
This commit is contained in:
parent
c61c09a567
commit
3c15eb8e81
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user