6 #ifndef KAGOME_CHAIN_GET_HEADER_HPP 7 #define KAGOME_CHAIN_GET_HEADER_HPP 14 std::optional<std::string>> {
17 outcome::result<primitives::BlockHeader>
execute()
override {
18 if (
const auto ¶m_0 = getParam<0>()) {
19 return api_->getHeader(*param_0);
21 return api_->getHeader();
25 std::shared_ptr<ChainApi>
api_;
30 #endif // KAGOME_CHAIN_GET_HEADER_HPP