Scorum
block_info_api.hpp
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include <fc/api.hpp>
5 
7 
8 namespace scorum {
9 namespace app {
10 struct api_context;
11 }
12 }
13 
14 namespace scorum {
15 namespace plugin {
16 namespace block_info {
17 
18 namespace detail {
19 class block_info_api_impl;
20 }
21 
23 {
24  uint32_t start_block_num = 0;
25  uint32_t count = 1000;
26 };
27 
38 {
39 public:
41 
42  void on_api_startup();
43 
47 
48  std::vector<block_info> get_block_info(get_block_info_args args);
49  std::vector<block_with_info> get_blocks_with_info(get_block_info_args args);
50 
52 
53 private:
54  std::shared_ptr<detail::block_info_api_impl> my;
55 };
56 }
57 }
58 }
59 
61 
62 FC_API(scorum::plugin::block_info::block_info_api, (get_block_info)(get_blocks_with_info))
block_info_api(const scorum::app::api_context &ctx)
std::vector< block_info > get_block_info(get_block_info_args args)
std::vector< block_with_info > get_blocks_with_info(get_block_info_args args)
FC_REFLECT(appender_args,(appender)(stream)) FC_REFLECT_DERIVED(file_appender_args
Definition: asset.cpp:15