Published 15 October 2018

StatsGet

Getting the period statistics collected.

Parameters

Parameters:

None.

Type of result: StatsGetResult

Operation algorithm

Operation algorithm:

We get the current statistics (period, the number of pools, the number of transactions, balances per currency and the number of smart contracts).

We return such statistics as result (plus the SUCCESS status).

Data structure

The following structures are used for marshalling purposes:

PeriodStats period statistics

typedef list<PeriodStats> StatsPerPeriod

Time periodDuration

period

Count poolsCount

number of pools

Count transactionsCount

number of transactions

Total balancePerCurrency

balance per currency

Count smartContractsCount

number of smart contracts

Example

Example

/** StatsGet begin */

 

StatsGetResult sg_res;

 

try

{

         api->StatsGet(sg_res);

}

catch (...)

{

         return 1;

}

 

sg_res.printTo(std::cout);

std::cout << std::endl << std::endl;

 

/** StatsGet end */

14 Useful article

Contents