aboutsummaryrefslogtreecommitdiff
path: root/utils/python-rpc/framework
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2020-01-16 17:51:24 -0800
committerAlexander Blair <snipa@jagtech.io>2020-01-16 17:51:25 -0800
commitbeb815a81defc441138bb6929c3b525e008fe734 (patch)
treefb289c81a7be0fc91023d12a9c1531981dcc9626 /utils/python-rpc/framework
parentMerge pull request #6143 (diff)
parentwallet_rpc_server: add count parameter to create_address (diff)
downloadmonero-beb815a81defc441138bb6929c3b525e008fe734.tar.xz
Merge pull request #6144
0e0351c4 wallet_rpc_server: add count parameter to create_address (Matt Smith)
Diffstat (limited to 'utils/python-rpc/framework')
-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 37a7f8975..703261a4e 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)