@@ -537,7 +537,58 @@ public String publish(String streamName, String key, String dataHex) throws Mult
537537
538538 return stringPublish ;
539539 }
540+
541+ /**
542+ * {@link #publish(String, String, String)} with control over the from-address used to
543+ * used to publish
544+ *
545+ * @param addressFrom
546+ * (Address) The from-address used to publish
547+ * @param streamName
548+ * (String) The name of the stream
549+ * @param key
550+ * (String) The key of the item
551+ * @param dataHex
552+ * (String) Data in hexadecimal
553+ * @return (String) The transaction id
554+ * @throws MultichainException
555+ */
556+
557+ public String publishFrom (Address addressFrom , String streamName , String key , String dataHex ) throws MultichainException {
558+ String stringPublish = "" ;
559+ Object objectPublish = executePublishFrom (addressFrom .getAddress (), streamName , key , dataHex );
560+ if (verifyInstance (objectPublish , String .class )) {
561+ stringPublish = (String ) objectPublish ;
562+ }
563+ return stringPublish ;
564+ }
565+
566+ /**
567+ * {@link #createFrom(Address, String, String, String)} with address in format string
568+ *
569+ * @param addressFrom
570+ * (String) The from-address used to publish
571+ * @param streamName
572+ * (String) The name of the stream
573+ * @param key
574+ * (String) The key of the item
575+ * @param dataHex
576+ * (String) Data in hexadecimal
577+ * @return (String) The transaction id
578+ * @throws MultichainException
579+ */
580+
581+ public String publishFrom (String addressFrom , String streamName , String key , String dataHex ) throws MultichainException {
582+ String stringPublish = "" ;
540583
584+ Object objectPublish = executePublishFrom (addressFrom , streamName , key , dataHex );
585+ if (verifyInstance (objectPublish , String .class )) {
586+ stringPublish = (String ) objectPublish ;
587+ }
588+
589+ return stringPublish ;
590+ }
591+
541592 /**
542593 * subscribe entity-identifier(s) ( rescan )
543594 *
0 commit comments