getSerializedBytes

open fun getSerializedBytes(): ByteString
Signed transaction containing protobuf encoded, Base64-encoded form (Stargate case),
wrapped in a ready-to-broadcast json.
string serialized = 3;

Return

The bytes for serialized.