public Optional<Bytes> getRawReceipt(final DataFetchingEnvironment environment) {
    return getReceipt(environment)
        .map(
            receipt -> {
              final BytesValueRLPOutput rlpOutput = new BytesValueRLPOutput();
              TransactionReceiptEncoder.writeTo(
                  receipt.getReceipt(), rlpOutput, TransactionReceiptEncodingConfiguration.DEFAULT);
              return rlpOutput.encoded();
            });
  }
Retrieves the raw receipt of the transaction.

<p>This method uses the getReceipt method to get the receipt of the transaction. It then writes
the receipt data to a BytesValueRLPOutput object using the writeToForNetwork method of the
receipt. It then encodes the BytesValueRLPOutput object and returns it.

@param environment the data fetching environment.
@return an Optional containing a Bytes object representing the raw receipt of the transaction.
ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/graphql/internal/pojoadapter/TransactionAdapter.java