Package org.onyx.api

Class Action

java.lang.Object
org.onyx.api.Action

public class Action extends Object
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.
  • Field Details

    • amount

      @Expose public long amount
      The number of units of the action's asset
    • type

      @Expose public String type
      The type of the action. Currently, there are three options: "issue", "transfer", "retire".
    • id

      @Expose public String id
      A unique ID.
    • transactionId

      @SerializedName("transaction_id") @Expose public String transactionId
      The ID of the transaction in which the action appears.
    • timestamp

      @Expose public Date timestamp
      Time of the action.
    • assetId

      @SerializedName("asset_id") @Expose public String assetId
      The ID of the asset held by the action.
    • snapshot

      @SerializedName("snapshot") @Expose public Action.Snapshot 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

      @SerializedName("source_account_id") @Expose public String sourceAccountId
      The ID of the source account executing the action.
    • destinationAccountId

      @SerializedName("destination_account_id") @Expose public String destinationAccountId
      The ID of the destination account affected by the action.
    • tags

      @SerializedName("tags") @Expose public Map<String,Object> tags
      User-specified key-value data embedded in the action.
  • Constructor Details

    • Action

      public Action()