async encodeTransaction(activeData) {
          let { nonce } = activeData;
          if (activeData.nonce === undefined) {
            if (!this.provider)
              throw new Error(
                "Cannot get the nonce because provider is undefined. To skip this call set a nonce in the parameters"
              );
            // TODO: Option to resolve names
            // this depends on the final architecture for names on Koinos
            nonce = await this.provider.getNonce(this.getAddress());
          }
          const rcLimit =
            activeData.rc_limit === undefined ? 1000000 : activeData.rc_limit;
          const operations = activeData.operations ? activeData.operations : [];
          const activeData2 = {
            rc_limit: rcLimit,
            nonce,
            operations,
          };
          const buffer = await this.serializer.serialize(activeData2);
          return {
            active: utils_1.encodeBase64(buffer),
          };
        }
/**
         * Function to encode a transaction
         * @param activeData - Active data consists of nonce, rc_limit, and
         * operations. Do not set the nonce to get it from the blockchain
         * using the provider. The rc_limit is 1000000 by default.
         * @returns A transaction encoded. The active field is encoded in
         * base64url
         */
Function to encode a transaction
@param activeData - Active data consists of nonce, rc_limit, and
operations. Do not set the nonce to get it from the blockchain
using the provider. The rc_limit is 1000000 by default.
@returns A transaction encoded. The active field is encoded in
base64url
Function to encode a transaction @param activeData - Active data consists of nonce rc_limit and operations . Do not set the nonce to get it from the blockchain using the provider . The rc_limit is 1000000 by default . @returns A transaction encoded . The active field is encoded in base64url
async encodeTransaction(activeData) {
          let { nonce } = activeData;
          if (activeData.nonce === undefined) {
            if (!this.provider)
              throw new Error(
                "Cannot get the nonce because provider is undefined. To skip this call set a nonce in the parameters"
              );
            nonce = await this.provider.getNonce(this.getAddress());
          }
          const rcLimit =
            activeData.rc_limit === undefined ? 1000000 : activeData.rc_limit;
          const operations = activeData.operations ? activeData.operations : [];
          const activeData2 = {
            rc_limit: rcLimit,
            nonce,
            operations,
          };
          const buffer = await this.serializer.serialize(activeData2);
          return {
            active: utils_1.encodeBase64(buffer),
          };
        }
async encodeTransaction ( activeData ) { let { nonce } = activeData ; if ( activeData . nonce === undefined ) { if ( ! this . provider ) throw new Error ( "Cannot get the nonce because provider is undefined. To skip this call set a nonce in the parameters" ) ; nonce = await this . provider . getNonce ( this . getAddress ( ) ) ; } const rcLimit = activeData . rc_limit === undefined ? 1000000 : activeData . rc_limit ; const operations = activeData . operations ? activeData . operations : [ ] ; const activeData2 = { rc_limit : rcLimit , nonce , operations , } ; const buffer = await this . serializer . serialize ( activeData2 ) ; return { active : utils_1 . encodeBase64 ( buffer ) , } ; }
Function to encode a transaction
 @param activeData - Active data consists of nonce, rc_limit, and
 operations.
Function to encode a transaction @param activeData - Active data consists of nonce rc_limit and operations .
// TODO: Option to resolve names // this depends on the final architecture for names on Koinos