Package org.onyx.api
Class Transaction.Builder.Action.Issue
java.lang.Object
java.util.AbstractMap<String,Object>
java.util.HashMap<String,Object>
org.onyx.api.Transaction.Builder.Action
org.onyx.api.Transaction.Builder.Action.Issue
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
- Enclosing class:
Transaction.Builder.Action
Issues new units of an asset to a destination account.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.onyx.api.Transaction.Builder.Action
Transaction.Builder.Action.Issue, Transaction.Builder.Action.Retire, Transaction.Builder.Action.TransferNested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddActionTagsField(String key, Object value) Adds a key-value pair to the tags for the action.addTokenTagsField(String key, Object value) Adds a key-value pair to the tokens output by the action.setActionTags(Map<String, Object> actionTags) Specifies tags for the action.setAmount(long amount) Specifies the amount to be issued.setAssetId(String id) Specifies the asset, identified by its ID, to be issued.Specifies the destination account, identified by its ID.setTokenTags(Map<String, Object> tokenTags) Specifies tags for the tokens output by the action.Methods inherited from class org.onyx.api.Transaction.Builder.Action
addKeyValueField, addListItemMethods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
Issue
public Issue()
-
-
Method Details
-
setAssetId
Specifies the asset, identified by its ID, to be issued.- Parameters:
id- ID of an asset- Returns:
- updated action
-
setAmount
Specifies the amount to be issued.- Parameters:
amount- number of asset units- Returns:
- updated action
-
setDestinationAccountId
Specifies the destination account, identified by its ID. You must specify a destination account ID.- Parameters:
id- an account ID- Returns:
- updated action
-
setTokenTags
Specifies tags for the tokens output by the action.- Parameters:
tokenTags- arbitrary key-value data- Returns:
- updated action
-
addTokenTagsField
Adds a key-value pair to the tokens output by the action.- Parameters:
key- key of the token tag fieldvalue- value of token tag field- Returns:
- updated action
-
setActionTags
Specifies tags for the action.- Parameters:
actionTags- arbitrary key-value data- Returns:
- updated action
-
addActionTagsField
Adds a key-value pair to the tags for the action.- Parameters:
key- key of the action tags fieldvalue- value of action tags field- Returns:
- updated action
-