open fun toEncodedRpcMessage(objectMapper: ObjectMapper): Bytes
(source)
Encode the RPC request as bytes.
objectMapper
- the object mapper to serialize the request with
JsonProcessingException
- thrown if there is an error while serializing the request to bytes
Return
an RPC request serialized into bytes