@@ -366,6 +366,55 @@ protected Object executeIssueMoreFrom( String fromAddress,
366366 return execute (CommandEnum .ISSUEMOREFROM , fromAddress , toAddress , assetName , quantity );
367367 }
368368
369+ /**
370+ * Issues qty additional units of asset, sending them to address. The asset
371+ * can be specified using its name, ref or issuance txid
372+ *
373+ * issuemorefrom "from-address" "to-address" asset-identifier quantity (
374+ * native-amount custom-fields )
375+ *
376+ * Create more units for asset from specific address
377+ *
378+ * Arguments: 1. "from-address" (string, required) Address used for issuing.
379+ * 2. "to-address" (string, required) The address to send newly created
380+ * asset to. 3. "asset-identifier" (string, required) Asset identifier - one
381+ * of the following: issue txid. asset reference, asset name. 4. "quantity"
382+ * (numeric, required) The asset total amount in display units. eg. 1234.56
383+ * 5. "native-amount" (numeric, optional) native currency amount to send. eg
384+ * 0.1, Default: minimum-per-output. 6 "custom-fields" (object, optional) a
385+ * json object with custom fields { "param-name": "param-value" (strings,
386+ * required) The key is the parameter name, the value is parameter value
387+ * ,... }
388+ *
389+ * Result: "transactionid" (string) The transaction id.
390+ *
391+ * @param fromAddress
392+ * @param toAddress
393+ * @param assetName
394+ * @param quantity
395+ * @param customFields
396+ * @return
397+ * @throws MultichainException
398+ */
399+ protected Object executeIssueMoreFrom (String fromAddress ,
400+ String toAddress ,
401+ String assetName ,
402+ float quantity ,
403+ float nativeAmount ,
404+ List <CustomParamString > customFields ) throws MultichainException {
405+ MultichainTestParameter .isNotNullOrEmpty ("toAddress" , toAddress );
406+ MultichainTestParameter .isNotNullOrEmpty ("fromAddress" , fromAddress );
407+ MultichainTestParameter .isNotNullOrEmpty ("assetName" , assetName );
408+ MultichainTestParameter .valueIsPositive ("quantity" , quantity );
409+ Map <String , String > customParams = CustomParamFormatter .formatCustomParamString (customFields );
410+
411+ if (nativeAmount < 0.f || customParams == null || customParams .size () == 0 ) {
412+ return execute (CommandEnum .ISSUEMOREFROM , fromAddress , toAddress , assetName , quantity );
413+ } else {
414+ return execute (CommandEnum .ISSUEMOREFROM , fromAddress , toAddress , assetName , quantity , nativeAmount , customParams );
415+ }
416+ }
417+
369418 /**
370419 *
371420 * listassets ("asset-identifier" verbose) 1. "asset-identifier" (string,
0 commit comments