1. Create an EncoderΒΆ

Similar to the TransactionEncoder, there is a BatchEncoder for making Batches. As Batches are much simpler than Transactions, the only argument to pass during instantiation is the private key to use to sign Batches.