45 #include <boost/container/flat_set.hpp>
76 uint32_t total_count = 0;
89 vector<operation_history_object> get_account_history(
90 const std::string& account_name_or_id,
91 operation_history_id_type stop = operation_history_id_type(),
93 operation_history_id_type start = operation_history_id_type()
112 vector<operation_history_object> get_account_history_by_time(
113 const std::string& account_name_or_id,
114 const optional<uint32_t>& limit = optional<uint32_t>(),
115 const optional<fc::time_point_sec>& start = optional<fc::time_point_sec>()
129 const std::string& account_name_or_id,
130 const flat_set<uint16_t>& operation_types,
146 vector<operation_history_object> get_account_history_operations(
147 const std::string& account_name_or_id,
148 int64_t operation_type,
149 operation_history_id_type start = operation_history_id_type(),
150 operation_history_id_type stop = operation_history_id_type(),
167 vector<operation_history_object> get_relative_account_history(
168 const std::string& account_name_or_id,
171 uint64_t start = 0)
const;
186 vector<operation_history_object> get_block_operation_history(
188 const optional<uint16_t>& trx_in_block = {} )
const;
202 vector<operation_history_object> get_block_operations_by_time(
212 vector<order_history_object> get_fill_order_history(
213 const std::string& a,
214 const std::string& b,
215 uint32_t limit )
const;
229 vector<bucket_object> get_market_history(
const std::string& a,
const std::string& b,
230 uint32_t bucket_seconds,
239 flat_set<uint32_t> get_market_history_buckets()
const;
266 vector<liquidity_pool_history_object> get_liquidity_pool_history(
267 liquidity_pool_id_type pool_id,
295 vector<liquidity_pool_history_object> get_liquidity_pool_history_by_sequence(
296 liquidity_pool_id_type pool_id,
320 vector<optional<signed_block>> get_blocks(uint32_t block_num_from, uint32_t block_num_to)
const;
340 processed_transaction
trx;
352 void broadcast_transaction(
const precomputable_transaction& trx);
360 void broadcast_transaction_with_callback(
confirmation_callback cb,
const precomputable_transaction& trx);
367 fc::variant broadcast_transaction_synchronous(
const precomputable_transaction& trx);
386 map<transaction_id_type,confirmation_callback> _callbacks;
412 std::vector<net::peer_status> get_connected_peers()
const;
430 std::vector<net::potential_peer_record> get_potential_peers()
const;
477 uint32_t non_neg )
const;
488 const std::vector<commitment_type>& commits_in,
489 const std::vector<commitment_type>& neg_commits_in,
500 const std::vector<char>& proof )
const;
520 uint64_t actual_value )
const;
531 const std::vector<char>& proof )
const;
573 vector<account_asset_balance> get_asset_holders(
const std::string& asset_symbol_or_id,
574 uint32_t start, uint32_t limit )
const;
581 int64_t get_asset_holders_count(
const std::string& asset_symbol_or_id )
const;
587 vector<asset_holders> get_all_asset_holders()
const;
608 : min_price( p.
first.min_price ),
609 max_price( p.second.max_price ),
610 total_for_sale( p.second.total_for_sale )
623 flat_set<uint16_t> get_tracked_groups()
const;
636 vector< limit_order_group > get_grouped_limit_orders(
const std::string& base_asset,
637 const std::string& quote_asset,
639 const optional<price>& start,
640 uint32_t limit )
const;
683 vector<account_storage_object> get_storage_info(
684 const optional<std::string>& account_name_or_id = optional<std::string>(),
685 const optional<std::string>& catalog = optional<std::string>(),
686 const optional<std::string>& key = optional<std::string>(),
687 const optional<uint32_t>& limit = optional<uint32_t>(),
688 const optional<account_storage_id_type>& start_id = optional<account_storage_id_type>() )
const;
699 bool dummy()
const {
return false; }
714 namespace graphene {
namespace app {
741 variant login(
const optional<string>& user,
const optional<string>& password);
749 string get_info()
const;
756 flat_set<string> get_available_api_sets()
const;
784 bool is_database_api_allowed()
const;
789 flat_set< string > _allowed_apis;
791 optional< fc::api<block_api> > _block_api;
792 optional< fc::api<database_api> > _database_api;
793 optional< fc::api<network_broadcast_api> > _network_broadcast_api;
794 optional< fc::api<network_node_api> > _network_node_api;
795 optional< fc::api<history_api> > _history_api;
796 optional< fc::api<crypto_api> > _crypto_api;
797 optional< fc::api<asset_api> > _asset_api;
798 optional< fc::api<orders_api> > _orders_api;
799 optional< fc::api<graphene::debug_witness::debug_api> > _debug_api;
800 optional< fc::api<custom_operations_api> > _custom_operations_api;
801 optional< fc::api<dummy_api> > _dummy_api;
809 (
id)(block_num)(trx_num)(trx) )
812 (success)(min_val)(max_val) )
814 (success)(min_val)(max_val)(value_out)(blind_out)(message_out) )
817 (total_count)(operation_history_objs) )
820 (min_price)(max_price)(total_for_sale) )
826 (get_account_history)
827 (get_account_history_by_time)
828 (get_account_history_by_operations)
829 (get_account_history_operations)
830 (get_relative_account_history)
831 (get_block_operation_history)
832 (get_block_operations_by_time)
833 (get_fill_order_history)
835 (get_market_history_buckets)
836 (get_liquidity_pool_history)
837 (get_liquidity_pool_history_by_sequence)
843 (broadcast_transaction)
844 (broadcast_transaction_with_callback)
845 (broadcast_transaction_synchronous)
851 (get_connected_peers)
852 (get_potential_peers)
853 (get_advanced_node_parameters)
854 (set_advanced_node_parameters)
867 (get_asset_holders_count)
868 (get_all_asset_holders)
872 (get_grouped_limit_orders)
885 (get_available_api_sets)