aboutsummaryrefslogtreecommitdiff
path: root/utils/python-rpc/framework
diff options
context:
space:
mode:
Diffstat (limited to 'utils/python-rpc/framework')
-rw-r--r--utils/python-rpc/framework/daemon.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/python-rpc/framework/daemon.py b/utils/python-rpc/framework/daemon.py
index 43a1aa469..c7831d1ee 100644
--- a/utils/python-rpc/framework/daemon.py
+++ b/utils/python-rpc/framework/daemon.py
@@ -590,6 +590,18 @@ class Daemon(object):
}
return self.rpc.send_json_rpc_request(flush_cache)
+ def get_txids_loose(self, txid_template, num_matching_bits):
+ get_txids_loose = {
+ 'method': 'get_txids_loose',
+ 'params': {
+ 'txid_template': txid_template,
+ 'num_matching_bits': num_matching_bits
+ },
+ 'jsonrpc': '2.0',
+ 'id': '0'
+ }
+ return self.rpc.send_json_rpc_request(get_txids_loose)
+
def sync_txpool(self):
sync_txpool = {
'method': 'sync_txpool',