public Optional<Bytes> getRaw() {
    final BytesValueRLPOutput rlpOutput = new BytesValueRLPOutput();
    transactionWithMetadata.getTransaction().writeTo(rlpOutput);
    return Optional.of(rlpOutput.encoded());
  }
Retrieves the raw transaction data.

<p>This method uses the writeTo method of the transaction to write the transaction data to a
BytesValueRLPOutput object. It then encodes the BytesValueRLPOutput object and returns it.

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