6 #ifndef KAGOME_SUBMIT_AND_WATCH_EXTRINSIC_HPP 7 #define KAGOME_SUBMIT_AND_WATCH_EXTRINSIC_HPP 9 #include <jsonrpc-lean/request.h> 24 outcome::result<primitives::SubscriptionId>
execute()
override {
25 auto ext_hex = getParam<0>();
27 OUTCOME_TRY(extrinsic, scale::decode<primitives::Extrinsic>(buffer));
28 return api_->submitAndWatchExtrinsic(extrinsic);
32 std::shared_ptr<AuthorApi>
api_;
37 #endif // KAGOME_SUBMIT_AND_WATCH_EXTRINSIC_HPP
outcome::result< primitives::SubscriptionId > execute() override
outcome::result< std::vector< uint8_t > > unhexWith0x(std::string_view hex_with_prefix)
Unhex hex-string with 0x in the begining.
SubmitAndWatchExtrinsic(std::shared_ptr< AuthorApi > api)
std::shared_ptr< AuthorApi > api_