mirror of
https://github.com/monero-project/monero.git
synced 2025-08-07 18:42:18 -04:00
wallet: create set_subaddress_lookahead wallet rpc endpoint
This commit is contained in:
parent
b987676d63
commit
6f36037116
5 changed files with 63 additions and 1 deletions
|
@ -334,6 +334,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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue