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

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

There is a newer version: 2.2
Show newest version
package com.seq.api;

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

/**
 * An object describing summary information about a ledger.
 */
public class Stats {
  /**
   * The number of assets in the ledger.
   */
  @SerializedName("asset_count")
  public long assetCount;

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

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

  /**
   * 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