From 3bd3a44aac604fc1e5b93417a01bc276ca35ebdf Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sat, 20 Mar 2021 17:40:46 +0000 Subject: python-rpc: add function for new scan_tx RPC --- utils/python-rpc/framework/wallet.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'utils') 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) -- cgit v1.2.3