All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.seq.api.Stats Maven / Gradle / Ivy

package com.seq.api;

import com.seq.http.*;
import com.seq.exception.*;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;

/**
 * An object describing summary information about a ledger.
 */
public class Stats {
  /**
   * The number of flavors in the ledger.
   */
  @SerializedName("flavor_count")
  @Expose
  public long flavorCount;

  /**
   * The number of accounts in the ledger.
   */
  @SerializedName("account_count")
  @Expose
  public long accountCount;

  /**
   * The number of transactions in the ledger.
   */
  @SerializedName("tx_count")
  @Expose
  public long txCount;

  /**
   * The ledger type. Value can be 'dev' or 'prod'.
   */
  @SerializedName("ledger_type")
  @Expose
  public String ledgerType;

  /**
   * Gets stats from the ledger.
   * @param client ledger API connection object
   * @return a Stats object
   * @throws ChainException
   */
  public static Stats get(Client client) throws ChainException {
    return client.request("stats", null, Stats.class);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy