Package org.onyx.api

Class Token

java.lang.Object
org.onyx.api.Token

public class Token extends Object
Token queries are designed to provide insights into tokens contained in an account. There are two types of queries you can run against them; one is "ListBuilder", one is "SumBuilder". ListBuilder simply returns a list of Token group objects that match the filter (each representing an amount of identical tokens); SumBuilder sums over the amount fields based on the filter and the groupBy param and returns TokenSum objects. Please refer to TokenSum class for more details.
  • 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

    • Token

      public Token()