Kagome
Polkadot Runtime Engine in C++17
pending_extrinsics.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_API_AUTHOR_REQUEST_PENDINGEXTRINSICS
7 #define KAGOME_API_AUTHOR_REQUEST_PENDINGEXTRINSICS
8 
10 #include "primitives/extrinsic.hpp"
11 
13 
15 
21  class PendingExtrinsics final
22  : public details::RequestType<std::vector<primitives::Extrinsic>> {
23  public:
24  explicit PendingExtrinsics(std::shared_ptr<AuthorApi> api)
25  : api_(std::move(api)){};
26 
27  outcome::result<Return> execute() {
28  return api_->pendingExtrinsics();
29  }
30 
31  private:
32  std::shared_ptr<AuthorApi> api_;
33  };
34 
35 } // namespace kagome::api::author::request
36 
37 #endif // KAGOME_API_AUTHOR_REQUEST_PENDINGEXTRINSICS
STL namespace.
PendingExtrinsics(std::shared_ptr< AuthorApi > api)
Returns all pending extrinsics, potentially grouped by sender.