Package org.onyx.api
Class Stats
java.lang.Object
org.onyx.api.Stats
An object describing summary information about a ledger.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongThe number of accounts in the ledger.longThe number of assets in the ledger.The ledger type.longThe number of transactions in the ledger. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
assetCount
@SerializedName("asset_count") @Expose public long assetCountThe number of assets in the ledger. -
accountCount
@SerializedName("account_count") @Expose public long accountCountThe number of accounts in the ledger. -
txCount
@SerializedName("tx_count") @Expose public long txCountThe number of transactions in the ledger. -
ledgerType
The ledger type. Value can be 'dev' or 'prod'.
-
-
Constructor Details
-
Stats
public Stats()
-
-
Method Details
-
get
Gets stats from the ledger.- Parameters:
client- ledger API connection object- Returns:
- a Stats object
- Throws:
ChainException
-