Kagome
Polkadot Runtime Engine in C++17
account_nonce_api.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_RUNTIME_ACCOUNTNONCEAPI_HPP
7 #define KAGOME_RUNTIME_ACCOUNTNONCEAPI_HPP
8 
9 #include "primitives/account.hpp"
10 
11 #include "primitives/block_id.hpp"
12 
13 namespace kagome::runtime {
14 
16  public:
17  virtual ~AccountNonceApi() = default;
18 
19  virtual outcome::result<primitives::AccountNonce> account_nonce(
20  const primitives::BlockHash &block,
21  const primitives::AccountId &account_id) = 0;
22  };
23 
24 } // namespace kagome::runtime
25 
26 #endif // KAGOME_ACCOUNTNONCEAPI_HPP
virtual outcome::result< primitives::AccountNonce > account_nonce(const primitives::BlockHash &block, const primitives::AccountId &account_id)=0
virtual ~AccountNonceApi()=default
crypto::Sr25519PublicKey AccountId
Definition: account.hpp:13