public List<TransactionAdapter> getTransactions(final DataFetchingEnvironment environment) {
    final BlockchainQueries query = getBlockchainQueries(environment);
    final Hash hash = blockWithMetaData.getHeader().getHash();
    final ProtocolSchedule protocolSchedule =
        environment.getGraphQlContext().get(GraphQLContextType.PROTOCOL_SCHEDULE);

    final List<TransactionWithMetadata> trans = blockWithMetaData.getTransactions();
    final List<TransactionReceiptWithMetadata> transReceipts =
        query.transactionReceiptsByBlockHash(hash, protocolSchedule).get();

    final List<TransactionAdapter> results = new ArrayList<>();
    for (int i = 0; i < trans.size(); i++) {
      results.add(new TransactionAdapter(trans.get(i), transReceipts.get(i)));
    }
    return results;
  }
Returns a list of TransactionAdapter objects for the transactions in the block.

<p>Each TransactionAdapter object is created by adapting a TransactionWithMetadata object.

@param environment the data fetching environment.
@return a list of TransactionAdapter objects for the transactions in the block.
ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/graphql/internal/pojoadapter/NormalBlockAdapter.java