DECENT
Functions

Functions

uint64_t graphene::app::database_api::get_asset_count () const
 Get the total number of assets registered on the blockchain. More...
 
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...
 
vector< optional< asset_dynamic_data_object > > graphene::app::database_api::get_asset_dynamic_data (const vector< asset_dynamic_data_id_type > &asset_dynamic_data_ids) const
 Get a list of asset dynamic data objects by ID. 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

uint64_t graphene::app::database_api::get_asset_count ( ) const

Get the total number of assets registered on the blockchain.

Returns
the total number of registered assets

Definition at line 1018 of file database_api.cpp.

vector< optional< asset_dynamic_data_object > > graphene::app::database_api::get_asset_dynamic_data ( const vector< asset_dynamic_data_id_type > &  asset_dynamic_data_ids) const

Get a list of asset dynamic data objects by ID.

Note
This function has semantics identical to get_objects().
Parameters
asset_dynamic_data_idsIDs of the asset dynamic data objects to retrieve
Returns
the asset dynamic data objects corresponding to the provided IDs

Definition at line 1085 of file database_api.cpp.

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 1028 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 1816 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 1038 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 1062 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 1095 of file database_api.cpp.