5. Encode the Batch(es)ΒΆ

In order to transmit one or more Batches to a validator for submission, they must be serialized, and BatchList is the protobuf message class for that purpose. It has one batches property, which should be set to one or more Batches.