Kagome
Polkadot Runtime Engine in C++17
account_nonce_api.cpp
Go to the documentation of this file.
1 
7 
9 
10 namespace kagome::runtime {
11 
12  AccountNonceApiImpl::AccountNonceApiImpl(std::shared_ptr<Executor> executor)
13  : executor_{std::move(executor)} {
14  BOOST_ASSERT(executor_);
15  }
16 
17  outcome::result<primitives::AccountNonce> AccountNonceApiImpl::account_nonce(
18  const primitives::BlockHash &block,
19  const primitives::AccountId &account_id) {
20  return executor_->callAt<primitives::AccountNonce>(
21  block, "AccountNonceApi_account_nonce", account_id);
22  };
23 
24 } // namespace kagome::runtime
AccountNonceApiImpl(std::shared_ptr< Executor > executor)
uint32_t AccountNonce
Definition: account.hpp:15
crypto::Sr25519PublicKey AccountId
Definition: account.hpp:13
std::shared_ptr< Executor > executor_
outcome::result< primitives::AccountNonce > account_nonce(const primitives::BlockHash &block, const primitives::AccountId &account_id) override