Block API
Block
get_blocks
-
vector<optional<signed_block>> graphene::app::block_api::get_blocks(uint32_t block_num_from, uint32_t block_num_to) const
Get signed blocks.
- Parameters:
block_num_from – The lowest block number
block_num_to – The highest block number
- Returns:
A list of signed blocks from block_num_from till block_num_to
Asset API
Asset
get_asset_holders
-
vector<account_asset_balance> graphene::app::asset_api::get_asset_holders(const std::string &asset_symbol_or_id, uint32_t start, uint32_t limit) const
Get asset holders for a specific asset.
- Parameters:
asset_symbol_or_id – The specific asset symbol or ID
start – The start index
limit – Maximum number of accounts to retrieve, must not exceed the configured value of api_limit_get_asset_holders
- Returns:
A list of asset holders for the specified asset
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
Orders API
Orders
get_grouped_limit_orders
-
vector<limit_order_group> graphene::app::orders_api::get_grouped_limit_orders(const std::string &base_asset, const std::string "e_asset, uint16_t group, const optional<price> &start, uint32_t limit) const
Get grouped limit orders in given market.
- Parameters:
base_asset – symbol or ID of asset being sold
quote_asset – symbol or ID of asset being purchased
group – Maximum price diff within each order group, have to be one of configured values
start – Optional price to indicate the first order group to retrieve
limit – Maximum number of order groups to retrieve, must not exceed the configured value of api_limit_get_grouped_limit_orders
- Returns:
The grouped limit orders, ordered from best offered price to worst