MCPcopy Create free account
hub / github.com/ccxt/ccxt / check_address

Method check_address

python/ccxt/base/exchange.py:3196–3204  ·  view source on GitHub ↗
(self, address: Str = None)

Source from the content-addressed store, hash-verified

3194 raise InvalidProxySettings(self.id + ' you have multiple conflicting proxy settings, please use only one from : proxyUrl, httpProxy, httpsProxy, socksProxy')
3195
3196 def check_address(self, address: Str = None):
3197 if address is None:
3198 raise InvalidAddress(self.id + ' address is None')
3199 # check the address is not the same letter like 'aaaaa' nor too short nor has a space
3200 uniqChars = (self.unique(self.string_to_chars_array(address)))
3201 length = len(uniqChars) # py transpiler trick
3202 if length == 1 or len(address) < self.minFundingAddressLength or address.find(' ') > -1:
3203 raise InvalidAddress(self.id + ' address is invalid or has less than ' + str(self.minFundingAddressLength) + ' characters: "' + str(address) + '"')
3204 return address
3205
3206 def find_message_hashes(self, client, element: str):
3207 result = []

Callers 15

parse_deposit_addressMethod · 0.80
withdrawMethod · 0.80
parse_deposit_addressMethod · 0.80
withdrawMethod · 0.80
transferMethod · 0.80
withdrawMethod · 0.80
parse_deposit_addressMethod · 0.80
withdrawMethod · 0.80
parse_deposit_addressMethod · 0.80
parse_deposit_addressMethod · 0.80

Calls 4

uniqueMethod · 0.95
string_to_chars_arrayMethod · 0.95
InvalidAddressClass · 0.90
findMethod · 0.80

Tested by

no test coverage detected