public Bytes getEncodedRequest() {
    return Bytes.concatenate(Bytes.of(getType().ordinal()), getData());
  }
Gets the serialized form of the concatenated type and data.

@return the serialized request as a byte.
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/core/Request.java