tuweni / org.apache.tuweni.scuttlebutt.rpc / RPCAsyncRequest / toEncodedRpcMessage

toEncodedRpcMessage

open fun toEncodedRpcMessage(objectMapper: ObjectMapper!): Bytes! (source)

Encode the RPC request as bytes.

Parameters

objectMapper - ObjectMapper!: the object mapper to serialize the request with

Exceptions

JsonProcessingException - thrown if there is an error while serializing the request to bytes

Return
Bytes!: an RPC request serialized into bytes