public Optional<NormalBlockAdapter> getBlock(final DataFetchingEnvironment environment) {
    return transactionWithMetadata
        .getBlockHash()
        .flatMap(blockHash -> getBlockchainQueries(environment).blockByHash(blockHash))
        .map(NormalBlockAdapter::new);
  }
Retrieves the block of the transaction.

@param environment the data fetching environment.
@return an Optional containing a NormalBlockAdapter object representing the block of the
    transaction, or an empty Optional if the transaction does not specify a block.
ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/graphql/internal/pojoadapter/TransactionAdapter.java