mirror of
https://github.com/monero-project/monero.git
synced 2025-12-21 23:00:49 -08:00
functional_tests: add validate_address tests
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user