BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | List of all members
graphene::app::asset_api Class Reference

The asset_api class allows query of info about asset holders. More...

#include <api.hpp>

Public Member Functions

 asset_api (graphene::app::application &app)
 
 ~asset_api ()
 
vector< account_asset_balanceget_asset_holders (std::string asset, uint32_t start, uint32_t limit) const
 Get asset holders for a specific asset. More...
 
int get_asset_holders_count (std::string asset) const
 Get asset holders count for a specific asset. More...
 
vector< asset_holdersget_all_asset_holders () const
 Get all asset holders. More...
 

Detailed Description

The asset_api class allows query of info about asset holders.

Definition at line 453 of file api.hpp.

Constructor & Destructor Documentation

graphene::app::asset_api::asset_api ( graphene::app::application app)

Definition at line 599 of file api.cpp.

graphene::app::asset_api::~asset_api ( )

Definition at line 604 of file api.cpp.

Member Function Documentation

vector< asset_holders > graphene::app::asset_api::get_all_asset_holders ( ) const

Get all asset holders.

Returns
A list of all asset holders

Definition at line 654 of file api.cpp.

vector< account_asset_balance > graphene::app::asset_api::get_asset_holders ( std::string  asset,
uint32_t  start,
uint32_t  limit 
) const

Get asset holders for a specific asset.

Parameters
assetThe specific asset id or symbol
startThe start index
limitMaximum limit must not exceed 100
Returns
A list of asset holders for the specified asset

Definition at line 606 of file api.cpp.

int graphene::app::asset_api::get_asset_holders_count ( std::string  asset) const

Get asset holders count for a specific asset.

Parameters
assetThe specific asset id or symbol
Returns
Holders count for the specified asset

Definition at line 644 of file api.cpp.


The documentation for this class was generated from the following files: