@Override
  public Bytes encoded() {
    final BytesValueRLPOutput rplOutput = new BytesValueRLPOutput();
    writeTo(rplOutput);
    return rplOutput.encoded();
  }
Writes the transaction to RLP using the specified format

@param out the output to write the transaction to
@param context the serialization format to use
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/core/Transaction.java