iota/commands/extended/utils.py
def find_transaction_objects(adapter, **kwargs):
    # type: (BaseAdapter, **Iterable) -> List[Transaction]
    """
    Finds transactions matching the specified criteria, fetches the
    corresponding trytes and converts them into Transaction objects.
    """
    ft_response = FindTransactionsCommand(adapter)(**kwargs)

    hashes = ft_response['hashes']

    if hashes:
        gt_response = GetTrytesCommand(adapter)(hashes=hashes)

        return list(map(
            Transaction.from_tryte_string,
            gt_response.get('trytes') or [],
        ))  # type: List[Transaction]

    return []
def find_transaction_objects(adapter, **kwargs):
    # type: (BaseAdapter, **Iterable) -> List[Transaction]
    """
    Finds transactions matching the specified criteria, fetches the
    corresponding trytes and converts them into Transaction objects.
    """
    ft_response = FindTransactionsCommand(adapter)(**kwargs)

    hashes = ft_response['hashes']

    if hashes:
        gt_response = GetTrytesCommand(adapter)(hashes=hashes)

        return list(map(
            Transaction.from_tryte_string,
            gt_response.get('trytes') or [],
        ))  # type: List[Transaction]

    return []
def find_transaction_objects ( adapter , * * kwargs ) : # type: (BaseAdapter, **Iterable) -> List[Transaction] ft_response = FindTransactionsCommand ( adapter ) ( * * kwargs ) hashes = ft_response [ 'hashes' ] if hashes : gt_response = GetTrytesCommand ( adapter ) ( hashes = hashes ) return list ( map ( Transaction . from_tryte_string , gt_response . get ( 'trytes' ) or [ ] , ) ) # type: List[Transaction] return [ ]
Finds transactions matching the specified criteria, fetches the
    corresponding trytes and converts them into Transaction objects.
Finds transactions matching the specified criteria fetches the corresponding trytes and converts them into Transaction objects .