DECENT
Functions

Functions

vector< optional< asset_object > > graphene::app::database_api::get_assets (const vector< asset_id_type > &asset_ids) const
 Get a list of assets by ID. More...
 
vector< asset_object > graphene::app::database_api::list_assets (const string &lower_bound_symbol, uint32_t limit) const
 Get assets alphabetically by symbol name. More...
 
vector< optional< asset_object > > graphene::app::database_api::lookup_asset_symbols (const vector< string > &symbols_or_ids) const
 Get a list of assets by symbol. More...
 
asset graphene::app::database_api::price_to_dct (asset price) const
 Converts asset into DCT, using actual price feed. More...
 
real_supply graphene::app::database_api::get_real_supply () const
 Return current core asset supply. More...
 

Detailed Description

Function Documentation

vector< optional< asset_object > > graphene::app::database_api::get_assets ( const vector< asset_id_type > &  asset_ids) const

Get a list of assets by ID.

Note
This function has semantics identical to get_objects().
Parameters
asset_idsIDs of the assets to retrieve
Returns
the assets corresponding to the provided IDs

Definition at line 1208 of file database_api.cpp.

real_supply graphene::app::database_api::get_real_supply ( ) const

Return current core asset supply.

Returns
current supply

Definition at line 2025 of file database_api.cpp.

vector< asset_object > graphene::app::database_api::list_assets ( const string &  lower_bound_symbol,
uint32_t  limit 
) const

Get assets alphabetically by symbol name.

Parameters
lower_bound_symbollower bound of symbol names to retrieve
limitmaximum number of assets to fetch (must not exceed 100)
Returns
the assets found

Definition at line 1228 of file database_api.cpp.

vector< optional< asset_object > > graphene::app::database_api::lookup_asset_symbols ( const vector< string > &  symbols_or_ids) const

Get a list of assets by symbol.

Note
This function has semantics identical to get_objects().
Parameters
symbols_or_idssymbols or stringified IDs of the assets to retrieve
Returns
the assets corresponding to the provided symbols or IDs

Definition at line 1252 of file database_api.cpp.

asset graphene::app::database_api::price_to_dct ( asset  price) const

Converts asset into DCT, using actual price feed.

Parameters
priceasset in DCT, monitored asset or user issued asset
Returns
price in DCT

Definition at line 1275 of file database_api.cpp.