1. Create an EncoderΒΆ

A TransactionEncoder stores your private key, and (optionally) default TransactionHeader values and/or a function to encode each payload. Once instansiated, multiple Transactions can be created using these common elements, and without any explicit hashing or signing.