Package org.onyx.api
Class Token
java.lang.Object
org.onyx.api.Token
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classIterable interface for consuming individual tokens from a query.static classA builder class for querying tokens in the ledger.static classA single page of tokens returned from a query.static classA builder class for querying token sums in the ledger. -
Field Summary
FieldsModifier and TypeFieldDescriptionThe ID of the account containing the tokens.The tags of the account containing the tokens.longThe amount of tokens in the group.The asset of the tokens in the group.The tags of the asset of the tokens in the group.The tags of the tokens in the group. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
amount
@Expose public long amountThe amount of tokens in the group. -
assetId
The asset of the tokens in the group. -
assetTags
The tags of the asset of the tokens in the group. -
accountId
The ID of the account containing the tokens. -
accountTags
The tags of the account containing the tokens. -
tags
The tags of the tokens in the group.
-
-
Constructor Details
-
Token
public Token()
-