check_address function replaced by address_decode that parse address, check it, and returns its prefix