def METHOD_NAME(elements: Iterable[ScoreElementMetadata]) -> List:
    """Returns score api used in icx_getScoreApi JSON-RPC method
    :param elements:
    :return:
    """
    api = []
    for element in elements:
        if isinstance(element, FunctionMetadata):
            func: FunctionMetadata = element
            if func.flag == ScoreFlag.PAYABLE:
                continue
            item = _get_function(func.name, func.flag, func.signature)
        elif isinstance(element, EventLogMetadata):
            eventlog: EventLogMetadata = element
            item = _get_eventlog(eventlog.name, eventlog.signature, eventlog.indexed_args_count)
        else:
            raise IllegalFormatException(f"Invalid score element: {element} {type(element)}")
        api.append(item)
    return api