Merge pull request #7618

3bd3a44 python-rpc: add function for new scan_tx RPC (moneromooo-monero)
This commit is contained in:
luigi1111 2021-03-22 20:18:29 -04:00
commit 8e139db454
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -1088,3 +1088,14 @@ class Wallet(object):
'id': '0'
}
return self.rpc.send_json_rpc_request(get_version)
def scan_tx(self, txids):
scan_tx = {
'method': 'scan_tx',
'jsonrpc': '2.0',
'params' : {
'txids': txids,
},
'id': '0'
}
return self.rpc.send_json_rpc_request(scan_tx)