def get_address(address, filter=None, limit=None, offset=None, api_code=None):
resource = '<STR_LIT>'.format(address)<EOL>if filter is not None:<EOL><INDENT>if isinstance(filter, FilterType):<EOL><INDENT>resource += '<STR_LIT>' + str(filter.value)<EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT><DEDENT>if limit is not None:<EOL><INDENT>resource += '<STR_LIT>' + str(limit)<EOL><DEDENT>if offset is not None:<EOL><INDENT>resource += '<STR_LIT>' + str(offset)<EOL><DEDENT>if api_code is not None:<EOL><INDENT>resource += '<STR_LIT>' + api_code<EOL><DEDENT>response = util.call_api(resource)<EOL>json_response = json.loads(response)<EOL>return Address(json_response)<EOL>
Get data for a single address including an address balance and list of relevant transactions.

    :param str address: address(base58 or hash160) to look up
    :param FilterType filter: the filter for transactions selection (optional)
    :param int limit: limit number of transactions to display (optional)
    :param int offset: number of transactions to skip when display (optional)
    :param str api_code: Blockchain.info API code (optional)
    :return: an instance of :class:`Address` class