OSDN Git Service

add retire setArbitrary
authorwyjDoraemon <wyjDoraemon@163.com>
Fri, 4 Jan 2019 02:25:37 +0000 (10:25 +0800)
committerwyjDoraemon <wyjDoraemon@163.com>
Fri, 4 Jan 2019 02:25:37 +0000 (10:25 +0800)
src/main/java/io/bytom/api/Transaction.java

index d848986..42accee 100644 (file)
@@ -824,7 +824,14 @@ public class Transaction {
                 this.put("asset_id", id);
                 return this;
             }
-
+            /**
+             * @param arbitrary message to be on the chain (must be hexadecimal)
+             * @return updated action object
+             */
+            public Retire setArbitrary(String arbitrary){
+                this.put("arbitrary",arbitrary);
+                return this;
+            }
             public Retire setAccountAlias(String alias) {
                 this.put("account_alias", alias);
                 return this;