6 #ifndef KAGOME_QUERY_INFO_HPP 7 #define KAGOME_QUERY_INFO_HPP 9 #include <jsonrpc-lean/request.h> 27 outcome::result<primitives::RuntimeDispatchInfo>
execute()
override {
28 auto ext_hex = getParam<0>();
30 auto len = ext_bytes.size();
31 OUTCOME_TRY(extrinsic, scale::decode<primitives::Extrinsic>(ext_bytes));
33 auto at_hex = getParam<1>();
35 return api_->queryInfo(extrinsic, len, std::nullopt);
41 return api_->queryInfo(extrinsic, len, std::cref(at_hash));
45 std::shared_ptr<PaymentApi>
api_;
50 #endif // KAGOME_QUERY_INFO_HPP
outcome::result< std::vector< uint8_t > > unhexWith0x(std::string_view hex_with_prefix)
Unhex hex-string with 0x in the begining.
QueryInfo(std::shared_ptr< PaymentApi > api)
outcome::result< primitives::RuntimeDispatchInfo > execute() override
static constexpr size_t size()
std::shared_ptr< PaymentApi > api_