if (!options.smartContractId) {
      if (!process.env.SMART_CONTRACT_ID) throw new FailureByDesign('PARAM_ERROR', 'Parameter `smartContractId` is required when not running within a smart contract');
      options.smartContractId = process.env.SMART_CONTRACT_ID;
    }