public class Argument
extends java.lang.Object
V1 format: "{"nonce":"<nonce>","_function_ids_":['function_id1', ...],<contract arguments in JSON>}"
V2 format: "V2<nonce><optional function IDs ('' separated)><contract arguments in a serialized JSON string format or a user-defined string format>"
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FUNCTIONS_KEY |
static java.lang.String |
NONCE_KEY_NAME |
Constructor and Description |
---|
Argument() |
Modifier and Type | Method and Description |
---|---|
static javax.json.JsonObject |
format(javax.json.JsonObject argument,
java.lang.String nonce)
Deprecated.
|
static java.lang.String |
format(java.lang.Object argument,
java.lang.String nonce,
java.util.List<java.lang.String> functionIds) |
static java.lang.String |
getContractArgument(java.lang.String argument) |
static java.util.List<java.lang.String> |
getFunctionIds(javax.json.JsonObject argument)
Deprecated.
|
static java.util.List<java.lang.String> |
getFunctionIds(java.lang.String argument)
Deprecated.
|
static java.lang.String |
getNonce(java.lang.String argument) |
public static final java.lang.String NONCE_KEY_NAME
public static final java.lang.String FUNCTIONS_KEY
public static java.lang.String format(java.lang.Object argument, java.lang.String nonce, java.util.List<java.lang.String> functionIds)
@Deprecated public static javax.json.JsonObject format(javax.json.JsonObject argument, java.lang.String nonce)
public static java.lang.String getNonce(java.lang.String argument)
@Deprecated public static java.util.List<java.lang.String> getFunctionIds(java.lang.String argument)
@Deprecated public static java.util.List<java.lang.String> getFunctionIds(javax.json.JsonObject argument)
public static java.lang.String getContractArgument(java.lang.String argument)