aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/python-rpc/framework/wallet.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/python-rpc/framework/wallet.py b/utils/python-rpc/framework/wallet.py
index 010f4dd08..d7cbde5da 100644
--- a/utils/python-rpc/framework/wallet.py
+++ b/utils/python-rpc/framework/wallet.py
@@ -333,6 +333,18 @@ class Wallet(object):
}
return self.rpc.send_json_rpc_request(generate_from_keys)
+ def set_subaddress_lookahead(self, major_idx: int, minor_idx: int):
+ lookahead = {
+ 'method': 'set_subaddress_lookahead',
+ 'jsonrpc': '2.0',
+ 'params' : {
+ 'major_idx': major_idx,
+ 'minor_idx': minor_idx
+ },
+ 'id': '0'
+ }
+ return self.rpc.send_json_rpc_request(lookahead)
+
def open_wallet(self, filename, password='', autosave_current = True):
open_wallet = {
'method': 'open_wallet',