DECENT
Functions

Functions

vector< assetgraphene::app::database_api::get_account_balances (account_id_type id, const flat_set< asset_id_type > &assets) const
 Get an account's balances in various assets. More...
 
vector< assetgraphene::app::database_api::get_named_account_balances (const std::string &name, const flat_set< asset_id_type > &assets) const
 Semantically equivalent to get_account_balances(), but takes a name instead of an ID. More...
 
vector< vesting_balance_objectgraphene::app::database_api::get_vesting_balances (account_id_type account_id) const
 Get information about a vesting balance object. More...
 

Detailed Description

Function Documentation

◆ get_account_balances()

vector< asset > graphene::app::database_api::get_account_balances ( account_id_type  id,
const flat_set< asset_id_type > &  assets 
) const

Get an account's balances in various assets.

Parameters
idID of the account to get balances for
assetsIDs of the assets to get balances of; if empty, get all assets account has a balance in
Returns
a list of the given account's balances

Definition at line 949 of file database_api.cpp.

◆ get_named_account_balances()

vector< asset > graphene::app::database_api::get_named_account_balances ( const std::string &  name,
const flat_set< asset_id_type > &  assets 
) const

Semantically equivalent to get_account_balances(), but takes a name instead of an ID.

Parameters
namethe name of the account to get balances for
assetsIDs of the assets to get balances of; if empty, get all assets account has a balance in
Returns
a list of the given account's balances

Definition at line 976 of file database_api.cpp.

◆ get_vesting_balances()

vector< vesting_balance_object > graphene::app::database_api::get_vesting_balances ( account_id_type  account_id) const

Get information about a vesting balance object.

Parameters
account_idan account ID
Returns
a list of vesting balances with additional information

Definition at line 989 of file database_api.cpp.