Scorum
account_history_api.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <fc/api.hpp>
5 
6 #ifndef API_ACCOUNT_HISTORY
7 #define API_ACCOUNT_HISTORY "account_history_api"
8 #endif
9 
10 namespace scorum {
11 namespace app {
12 struct api_context;
13 }
14 } // namespace scorum
15 
16 namespace scorum {
17 namespace blockchain_history {
18 
19 namespace detail {
20 class account_history_api_impl;
21 }
22 
33 {
34 public:
37 
38  void on_api_startup();
39 
43 
53  std::map<uint32_t, applied_operation>
54  get_account_history(const std::string& account, uint64_t from, uint32_t limit) const;
55 
56  std::map<uint32_t, applied_operation>
57  get_account_scr_to_scr_transfers(const std::string& account, uint64_t from, uint32_t limit) const;
58 
59  std::map<uint32_t, applied_operation>
60  get_account_scr_to_sp_transfers(const std::string& account, uint64_t from, uint32_t limit) const;
61 
62  std::map<uint32_t, applied_withdraw_operation>
63  get_account_sp_to_scr_transfers(const std::string& account, uint64_t from, uint32_t limit) const;
64 
66 
67 private:
68  std::unique_ptr<detail::account_history_api_impl> _impl;
69 };
70 } // namespace blockchain_history
71 } // namespace scorum
72 
74  (get_account_history)(get_account_scr_to_scr_transfers)(get_account_scr_to_sp_transfers)(
75  get_account_sp_to_scr_transfers))
account_history_api(const scorum::app::api_context &ctx)
std::map< uint32_t, applied_operation > get_account_history(const std::string &account, uint64_t from, uint32_t limit) const
std::map< uint32_t, applied_operation > get_account_scr_to_scr_transfers(const std::string &account, uint64_t from, uint32_t limit) const
std::map< uint32_t, applied_operation > get_account_scr_to_sp_transfers(const std::string &account, uint64_t from, uint32_t limit) const
std::map< uint32_t, applied_withdraw_operation > get_account_sp_to_scr_transfers(const std::string &account, uint64_t from, uint32_t limit) const
Definition: asset.cpp:15