TARAXA
graphql::taraxa::Account Class Reference

#include <account.hpp>

Collaboration diagram for graphql::taraxa::Account:

Public Member Functions

 Account (std::shared_ptr<::taraxa::final_chain::FinalChain > final_chain, dev::Address address, ::taraxa::EthBlockNumber blk_n)
 
 Account (std::shared_ptr<::taraxa::final_chain::FinalChain > final_chain, dev::Address address)
 
response::Value getAddress () const noexcept
 
response::Value getBalance () const noexcept
 
response::Value getTransactionCount () const noexcept
 
response::Value getCode () const noexcept
 
response::Value getStorage (response::Value &&slotArg) const
 

Private Attributes

const dev::Address kAddress
 
std::optional<::taraxa::state_api::Accountaccount_
 
std::shared_ptr<::taraxa::final_chain::FinalChainfinal_chain_
 

Constructor & Destructor Documentation

◆ Account() [1/2]

graphql::taraxa::Account::Account ( std::shared_ptr<::taraxa::final_chain::FinalChain final_chain,
dev::Address  address,
::taraxa::EthBlockNumber  blk_n 
)
explicit

◆ Account() [2/2]

graphql::taraxa::Account::Account ( std::shared_ptr<::taraxa::final_chain::FinalChain final_chain,
dev::Address  address 
)
explicit

Member Function Documentation

◆ getAddress()

response::Value graphql::taraxa::Account::getAddress ( ) const
noexcept

◆ getBalance()

response::Value graphql::taraxa::Account::getBalance ( ) const
noexcept

◆ getCode()

response::Value graphql::taraxa::Account::getCode ( ) const
noexcept

◆ getStorage()

response::Value graphql::taraxa::Account::getStorage ( response::Value &&  slotArg) const

◆ getTransactionCount()

response::Value graphql::taraxa::Account::getTransactionCount ( ) const
noexcept

Member Data Documentation

◆ account_

std::optional<::taraxa::state_api::Account> graphql::taraxa::Account::account_
private

◆ final_chain_

std::shared_ptr<::taraxa::final_chain::FinalChain> graphql::taraxa::Account::final_chain_
private

◆ kAddress

const dev::Address graphql::taraxa::Account::kAddress
private

The documentation for this class was generated from the following files: