diff options
Diffstat (limited to 'utils/python-rpc/framework')
-rw-r--r-- | utils/python-rpc/framework/wallet.py | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/utils/python-rpc/framework/wallet.py b/utils/python-rpc/framework/wallet.py index e09778c80..bcf908291 100644 --- a/utils/python-rpc/framework/wallet.py +++ b/utils/python-rpc/framework/wallet.py @@ -125,13 +125,13 @@ class Wallet(object): } return self.rpc.send_json_rpc_request(describe_transfer) - def create_wallet(self, index=''): + def create_wallet(self, filename='', password = '', language = 'English'): create_wallet = { 'method': 'create_wallet', 'params': { - 'filename': 'testWallet' + index, - 'password' : '', - 'language' : 'English' + 'filename': filename, + 'password': password, + 'language': language }, 'jsonrpc': '2.0', 'id': '0' @@ -623,6 +623,16 @@ class Wallet(object): } return self.rpc.send_json_rpc_request(relay_tx) + def get_languages(self): + get_languages = { + 'method': 'get_languages', + 'params': { + }, + 'jsonrpc': '2.0', + 'id': '0' + } + return self.rpc.send_json_rpc_request(get_languages) + def get_version(self): get_version = { 'method': 'get_version', |