Package org.onyx.api

Class Transaction.Builder.Action.Transfer

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

public static class Transaction.Builder.Action.Transfer extends Transaction.Builder.Action
Moves assets from a source account to a destination account.
See Also:
  • Constructor Details

    • Transfer

      public Transfer()
  • Method Details

    • setSourceAccountId

      public Transaction.Builder.Action.Transfer setSourceAccountId(String id)
      Specifies an account, identified by its ID, as the source of the asset units to be transferred. You must specify a source account ID.
      Parameters:
      id - an account ID
      Returns:
      updated action
    • setAssetId

      Specifies the asset, identified by its ID, to be transferred.
      Parameters:
      id - ID of an asset
      Returns:
      updated action
    • setAmount

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

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

      public Transaction.Builder.Action.Transfer 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
    • setFilter

      public Transaction.Builder.Action.Transfer setFilter(String filter)
      Token filter string. See {https://dashboard.seq.com/docs/filters}.
      Parameters:
      filter - a filter expression
      Returns:
      updated action
    • addFilterParameter

      public Transaction.Builder.Action.Transfer addFilterParameter(Object param)
      A list of parameter values for filter string (if needed).
      Parameters:
      param - a filter parameter
      Returns:
      updated action