public TransactionAdapter getTransaction(final DataFetchingEnvironment environment) {
    final BlockchainQueries query = getBlockchainQueries(environment);
    final Hash hash = logWithMetadata.getTransactionHash();
    final Optional<TransactionWithMetadata> tran = query.transactionByHash(hash);
    return tran.map(TransactionAdapter::new).orElseThrow();
  }
Returns the transaction associated with the log.

@param environment the data fetching environment.
@return a TransactionAdapter for the transaction associated with the log.
@throws java.util.NoSuchElementException if the transaction is not found.
ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/graphql/internal/pojoadapter/LogAdapter.java