def METHOD_NAME(self, request):
    """ Get request /validate_address/<address> that returns a script if address is valid.
    """
    request.setHeader(b'content-type', b'application/json; charset=utf-8')
    set_cors(request, 'GET')
    try:
        base_script = create_base_script(self.address)
    except Exception as e:
        ret = {
            'valid': False,
            'error': type(e).__name__,
            'msg': str(e),
        }
    else:
        ret = {
            'valid': True,
            'script': base64.b64encode(base_script.get_script()).decode('ascii'),
            'address': base_script.get_address(),
            'type': base_script.get_type().lower(),
        }
    return json_dumpb(ret)