mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #7751
b8b054c
python-rpc: add missing python api for new freeze/thaw/frozen RPC (moneromooo-monero)
This commit is contained in:
commit
ab7df49331
1 changed files with 33 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue