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