Skip to content

Latest commit

 

History

History
59 lines (34 loc) · 1.4 KB

StatsApi.md

File metadata and controls

59 lines (34 loc) · 1.4 KB

StatsApi

All URIs are relative to http://localhost

Method HTTP request Description
readStats GET /{ledger}/stats Get Stats

readStats

StatsResponse readStats()

Get ledger stats (aggregate metrics on accounts and transactions) The stats for account

Example

import { StatsApi, createConfiguration } from '@numaryhq/ledger-nodejs';
import * as fs from 'fs';

const configuration = createConfiguration();
const apiInstance = new StatsApi(configuration);

apiInstance.readStats("ledger_example" ).then((data:any) => {
  console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));

Parameters

Name Type Description Notes
ledger [string] ledger defaults to undefined

Return type

StatsResponse

Authorization

basicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]