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

#include <api.hpp>

Public Member Functions

 asset_api (graphene::chain::database &db)
 
 ~asset_api ()
 
vector< account_asset_balanceget_asset_holders (asset_id_type asset_id, uint32_t start, uint32_t limit) const
 Get asset holders for a specific asset. More...
 
int get_asset_holders_count (asset_id_type asset_id) const
 Get asset holders count for a specific asset. More...
 
vector< asset_holdersget_all_asset_holders () const
 Get all asset holders. More...
 

Detailed Description

Definition at line 438 of file api.hpp.

Constructor & Destructor Documentation

◆ asset_api()

graphene::app::asset_api::asset_api ( graphene::chain::database db)

Definition at line 528 of file api.cpp.

◆ ~asset_api()

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

Definition at line 529 of file api.cpp.

Member Function Documentation

◆ get_all_asset_holders()

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 574 of file api.cpp.

◆ get_asset_holders()

vector< account_asset_balance > graphene::app::asset_api::get_asset_holders ( asset_id_type  asset_id,
uint32_t  start,
uint32_t  limit 
) const

Get asset holders for a specific asset.

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

Definition at line 531 of file api.cpp.

◆ get_asset_holders_count()

int graphene::app::asset_api::get_asset_holders_count ( asset_id_type  asset_id) const

Get asset holders count for a specific asset.

Parameters
asset_idThe specific asset
Returns
Holders count for the specified asset

Definition at line 564 of file api.cpp.


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