Package org.onyx.api

Class Transaction.Builder.Action.Issue

All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>
Enclosing class:
Transaction.Builder.Action

public static class Transaction.Builder.Action.Issue extends Transaction.Builder.Action
Issues new units of an asset to a destination account.
See Also:
  • Constructor Details

    • Issue

      public Issue()
  • Method Details

    • setAssetId

      public Transaction.Builder.Action.Issue setAssetId(String id)
      Specifies the asset, identified by its ID, to be issued.
      Parameters:
      id - ID of an asset
      Returns:
      updated action
    • setAmount

      public Transaction.Builder.Action.Issue setAmount(long amount)
      Specifies the amount to be issued.
      Parameters:
      amount - number of asset units
      Returns:
      updated action
    • setDestinationAccountId

      public Transaction.Builder.Action.Issue setDestinationAccountId(String id)
      Specifies the destination account, identified by its ID. You must specify a destination account ID.
      Parameters:
      id - an account ID
      Returns:
      updated action
    • setTokenTags

      public Transaction.Builder.Action.Issue setTokenTags(Map<String,Object> tokenTags)
      Specifies tags for the tokens output by the action.
      Parameters:
      tokenTags - arbitrary key-value data
      Returns:
      updated action
    • addTokenTagsField

      public Transaction.Builder.Action.Issue addTokenTagsField(String key, Object value)
      Adds a key-value pair to the tokens output by the action.
      Parameters:
      key - key of the token tag field
      value - value of token tag field
      Returns:
      updated action
    • setActionTags

      public Transaction.Builder.Action.Issue setActionTags(Map<String,Object> actionTags)
      Specifies tags for the action.
      Parameters:
      actionTags - arbitrary key-value data
      Returns:
      updated action
    • addActionTagsField

      public Transaction.Builder.Action.Issue addActionTagsField(String key, Object value)
      Adds a key-value pair to the tags for the action.
      Parameters:
      key - key of the action tags field
      value - value of action tags field
      Returns:
      updated action