aboutsummaryrefslogtreecommitdiff
path: root/utils/python-rpc/framework/wallet.py
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-03-22 20:18:29 -0400
committerluigi1111 <luigi1111w@gmail.com>2021-03-22 20:18:29 -0400
commit8e139db45446ffa4027812103cd8da69fdacb79f (patch)
tree0a3daae79b83dc4e2010ff8dc3345684f36d377b /utils/python-rpc/framework/wallet.py
parentMerge pull request #7422 (diff)
parentpython-rpc: add function for new scan_tx RPC (diff)
downloadmonero-8e139db45446ffa4027812103cd8da69fdacb79f.tar.xz
Merge pull request #7618
3bd3a44 python-rpc: add function for new scan_tx RPC (moneromooo-monero)
Diffstat (limited to 'utils/python-rpc/framework/wallet.py')
-rw-r--r--utils/python-rpc/framework/wallet.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/python-rpc/framework/wallet.py b/utils/python-rpc/framework/wallet.py
index d97c24143..aca7c82bb 100644
--- a/utils/python-rpc/framework/wallet.py
+++ b/utils/python-rpc/framework/wallet.py
@@ -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)