Package org.onyx.api
Class Action
java.lang.Object
org.onyx.api.Action
Action queries are designed to provide insights into those actions.
There are two types of queries you can run against them; one is "ListBuilder",
one is "SumBuilder". ListBuilder simply returns a list of Action objects that match
the filter; SumBuilder sums over the amount fields based on the filter and
the groupBy param and returns ActionSum objects.
Please refer to ActionSum class for more details.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classIterable interface for consuming individual actions from a query.static classA builder class for querying actions in the ledger.static classA single page of actions returned from a query.static classstatic classA builder class for querying actionsums in the ledger.static classA builder for updating an action's tags. -
Field Summary
FieldsModifier and TypeFieldDescriptionlongThe number of units of the action's assetThe ID of the asset held by the action.The ID of the destination account affected by the action.A unique ID.A copy of the associated tags (asset, source account, destination account, action, and token) as they existed at the time of the transaction.The ID of the source account executing the action.User-specified key-value data embedded in the action.Time of the action.The ID of the transaction in which the action appears.The type of the action. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
amount
@Expose public long amountThe number of units of the action's asset -
type
The type of the action. Currently, there are three options: "issue", "transfer", "retire". -
id
A unique ID. -
transactionId
The ID of the transaction in which the action appears. -
timestamp
Time of the action. -
assetId
The ID of the asset held by the action. -
snapshot
A copy of the associated tags (asset, source account, destination account, action, and token) as they existed at the time of the transaction. -
sourceAccountId
The ID of the source account executing the action. -
destinationAccountId
The ID of the destination account affected by the action. -
tags
User-specified key-value data embedded in the action.
-
-
Constructor Details
-
Action
public Action()
-