6 #ifndef KAGOME_REQUESTS_HAS_KEY_HPP 7 #define KAGOME_REQUESTS_HAS_KEY_HPP 9 #include <jsonrpc-lean/request.h> 20 explicit HasKey(std::shared_ptr<AuthorApi> api) :
api_(
std::move(api)) {
24 outcome::result<Return>
execute()
override {
26 return api_->hasKey(gsl::span(public_key.data(), public_key.size()),
31 std::shared_ptr<AuthorApi>
api_;
36 #endif // KAGOME_REQUESTS_HAS_KEY_HPP
outcome::result< std::vector< uint8_t > > unhexWith0x(std::string_view hex_with_prefix)
Unhex hex-string with 0x in the begining.
HasKey(std::shared_ptr< AuthorApi > api)
std::shared_ptr< AuthorApi > api_
outcome::result< Return > execute() override
KeyTypeId decodeKeyTypeIdFromStr(std::string_view str)
restores KeyTypeId from its string representation