Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Kagome
Consensus
core
Development guide
Guide for `outcome::result<T>`
Rules
Terms
Tooling
Overview
Your first Kagome chain
Runing Kagome in docker container
Start private Kagome network
Namespaces
Classes
Files
File List
core
api
jrpc
service
author
chain
impl
requests
get_block.hpp
get_block_hash.cpp
get_block_hash.hpp
get_finalized_head.hpp
get_header.hpp
subscribe_finalized_heads.hpp
subscribe_new_heads.hpp
unsubscribe_finalized_heads.hpp
unsubscribe_new_heads.hpp
chain_api.hpp
chain_jrpc_processor.cpp
chain_jrpc_processor.hpp
child_state
impl
internal
payment
rpc
state
system
api_service.hpp
base_request.hpp
transport
application
assets
authority_discovery
authorship
blockchain
clock
common
consensus
containers
crypto
filesystem
host_api
injector
log
macro
metrics
network
offchain
outcome
parachain
primitives
runtime
scale
storage
subscription
telemetry
transaction_pool
utils
docs
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
unsubscribe_new_heads.hpp
Go to the documentation of this file.
1
6
#ifndef KAGOME_CHAIN_UNSUBSCRIBE_NEW_HEADS_HPP
7
#define KAGOME_CHAIN_UNSUBSCRIBE_NEW_HEADS_HPP
8
9
#include "
api/service/base_request.hpp
"
10
11
namespace
kagome::api::chain::request
{
12
13
struct
UnsubscribeNewHeads
final :
details::RequestType
<void, uint32_t> {
14
explicit
UnsubscribeNewHeads
(std::shared_ptr<ChainApi> &api) :
api_
(api) {
15
BOOST_ASSERT(
api_
);
16
}
17
18
outcome::result<Return>
execute
()
override
{
19
return
api_
->unsubscribeNewHeads(getParam<0>());
20
}
21
22
private
:
23
std::shared_ptr<ChainApi>
api_
;
24
};
25
26
}
// namespace kagome::api::chain::request
27
28
#endif // KAGOME_CHAIN_UNSUBSCRIBE_NEW_HEADS_HPP
kagome::api::chain::request
Definition:
get_block.hpp:11
kagome::api::chain::request::UnsubscribeNewHeads::UnsubscribeNewHeads
UnsubscribeNewHeads(std::shared_ptr< ChainApi > &api)
Definition:
unsubscribe_new_heads.hpp:14
kagome::api::chain::request::UnsubscribeNewHeads
Definition:
unsubscribe_new_heads.hpp:13
kagome::api::chain::request::UnsubscribeNewHeads::execute
outcome::result< Return > execute() override
Definition:
unsubscribe_new_heads.hpp:18
kagome::api::details::RequestType
Definition:
base_request.hpp:32
base_request.hpp
kagome::api::chain::request::UnsubscribeNewHeads::api_
std::shared_ptr< ChainApi > api_
Definition:
unsubscribe_new_heads.hpp:23
core
api
service
chain
requests
unsubscribe_new_heads.hpp
Generated by
1.8.11