aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-08-14 15:23:31 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-08-14 15:23:31 -0500
commitdd3b5ecb98aea5440da6059abc7060e1c45c7621 (patch)
tree1212d1130f219155808d94b0697d2aa34e872fd4 /utils
parentMerge pull request #4851 (diff)
parentfunctional_tests: add validate_address tests (diff)
downloadmonero-dd3b5ecb98aea5440da6059abc7060e1c45c7621.tar.xz
Merge pull request #5478
7d9b7fe functional_tests: add validate_address tests (moneromooo-monero)
Diffstat (limited to 'utils')
-rw-r--r--utils/python-rpc/framework/wallet.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/utils/python-rpc/framework/wallet.py b/utils/python-rpc/framework/wallet.py
index 2e2650f92..36ff3644f 100644
--- a/utils/python-rpc/framework/wallet.py
+++ b/utils/python-rpc/framework/wallet.py
@@ -750,6 +750,19 @@ class Wallet(object):
}
return self.rpc.send_json_rpc_request(set_log_categories)
+ def validate_address(self, address, any_net_type = False, allow_openalias = False):
+ validate_address = {
+ 'method': 'validate_address',
+ 'params': {
+ 'address': address,
+ 'any_net_type': any_net_type,
+ 'allow_openalias': allow_openalias,
+ },
+ 'jsonrpc': '2.0',
+ 'id': '0'
+ }
+ return self.rpc.send_json_rpc_request(validate_address)
+
def get_version(self):
get_version = {
'method': 'get_version',