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