Package org.onyx.api

Class TokenSum

java.lang.Object
org.onyx.api.TokenSum

public class TokenSum extends Object
TokenSum objects are what is returned by SumBuilder method in Token class. Different from other regular API objects, the amount field in TokenSum represents the summation of the amount fields of those matching actions, and all other fields represent the parameters by which to group actions. Please refer to Token class for more details about the SumBuilder method.
  • Field Details

    • amount

      @Expose public long amount
      The amount of tokens in the group.
    • assetId

      @SerializedName("asset_id") @Expose public String assetId
      The asset of the tokens in the group.
    • assetTags

      @SerializedName("asset_tags") @Expose public Map<String,Object> assetTags
      The tags of the asset of the tokens in the group.
    • accountId

      @SerializedName("account_id") @Expose public String accountId
      The ID of the account containing the tokens.
    • accountTags

      @SerializedName("account_tags") @Expose public Map<String,Object> accountTags
      The tags of the account containing the tokens.
    • tags

      @SerializedName("tags") @Expose public Map<String,Object> tags
      The tags of the tokens in the group.
  • Constructor Details

    • TokenSum

      public TokenSum()