aboutsummaryrefslogtreecommitdiff
path: root/utils/python-rpc/framework/wallet.py
diff options
context:
space:
mode:
authorMatt Smith <matt@offtopica.uk>2019-11-16 13:13:58 +0000
committerMatt Smith <matt@offtopica.uk>2019-11-22 12:00:01 +0000
commit0e0351c456ed8cd0c05138e15c641401588afb72 (patch)
treed89f58f9b83b676a5c0a854f3b4fdfae96b67038 /utils/python-rpc/framework/wallet.py
parentMerge pull request #6097 (diff)
downloadmonero-0e0351c456ed8cd0c05138e15c641401588afb72.tar.xz
wallet_rpc_server: add count parameter to create_address
Diffstat (limited to 'utils/python-rpc/framework/wallet.py')
-rw-r--r--utils/python-rpc/framework/wallet.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/python-rpc/framework/wallet.py b/utils/python-rpc/framework/wallet.py
index 6a3fabdc9..426074511 100644
--- a/utils/python-rpc/framework/wallet.py
+++ b/utils/python-rpc/framework/wallet.py
@@ -237,14 +237,15 @@ class Wallet(object):
}
return self.rpc.send_json_rpc_request(create_account)
- def create_address(self, account_index = 0, label = ""):
+ def create_address(self, account_index = 0, label = "", count = 1):
create_address = {
'method': 'create_address',
'params' : {
'account_index': account_index,
- 'label': label
+ 'label': label,
+ 'count': count
},
- 'jsonrpc': '2.0',
+ 'jsonrpc': '2.0',
'id': '0'
}
return self.rpc.send_json_rpc_request(create_address)