toProto

fun toProto(): CommandsOuterClass.DisclosedContract

As the Ledger API DisclosedContract for command submission.