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

com.chain.sequence.api.Stats Maven / Gradle / Ivy

The newest version!
package com.chain.sequence.api;

import com.chain.sequence.http.*;
import com.chain.sequence.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 - 2024 Weber Informatics LLC | Privacy Policy