TARAXA
graphql::taraxa::Transaction Class Referencefinal

#include <transaction.hpp>

Collaboration diagram for graphql::taraxa::Transaction:

Public Member Functions

 Transaction (std::shared_ptr<::taraxa::final_chain::FinalChain > final_chain, std::shared_ptr<::taraxa::TransactionManager > trx_manager, std::function< std::shared_ptr< object::Block >(::taraxa::EthBlockNumber)>, std::shared_ptr<::taraxa::Transaction > transaction) noexcept
 
response::Value getHash () const noexcept
 
response::Value getNonce () const noexcept
 
std::optional< int > getIndex () const noexcept
 
std::shared_ptr< object::Account > getFrom (std::optional< response::Value > &&blockArg) const
 
std::shared_ptr< object::Account > getTo (std::optional< response::Value > &&blockArg) const
 
response::Value getValue () const noexcept
 
response::Value getGasPrice () const noexcept
 
response::Value getGas () const noexcept
 
response::Value getInputData () const noexcept
 
std::shared_ptr< object::Block > getBlock () const
 
std::optional< response::Value > getStatus () const noexcept
 
std::optional< response::Value > getGasUsed () const noexcept
 
std::optional< response::Value > getCumulativeGasUsed () const noexcept
 
std::shared_ptr< object::Account > getCreatedContract (std::optional< response::Value > &&blockArg) const noexcept
 
std::optional< std::vector< std::shared_ptr< object::Log > > > getLogs () const noexcept
 
response::Value getR () const noexcept
 
response::Value getS () const noexcept
 
response::Value getV () const noexcept
 

Private Attributes

std::shared_ptr<::taraxa::final_chain::FinalChainfinal_chain_
 
std::shared_ptr<::taraxa::TransactionManagertrx_manager_
 
std::function< std::shared_ptr< object::Block >::taraxa::EthBlockNumber)> get_block_by_num_
 
std::shared_ptr<::taraxa::Transactiontransaction_
 
std::optional<::taraxa::final_chain::TransactionReceiptreceipt_
 
std::optional<::taraxa::final_chain::TransactionLocationlocation_
 

Constructor & Destructor Documentation

◆ Transaction()

graphql::taraxa::Transaction::Transaction ( std::shared_ptr<::taraxa::final_chain::FinalChain final_chain,
std::shared_ptr<::taraxa::TransactionManager trx_manager,
std::function< std::shared_ptr< object::Block >(::taraxa::EthBlockNumber)>  get_block_by_num,
std::shared_ptr<::taraxa::Transaction transaction 
)
explicitnoexcept

Member Function Documentation

◆ getBlock()

std::shared_ptr< object::Block > graphql::taraxa::Transaction::getBlock ( ) const

◆ getCreatedContract()

std::shared_ptr< object::Account > graphql::taraxa::Transaction::getCreatedContract ( std::optional< response::Value > &&  blockArg) const
noexcept

◆ getCumulativeGasUsed()

std::optional< response::Value > graphql::taraxa::Transaction::getCumulativeGasUsed ( ) const
noexcept

◆ getFrom()

std::shared_ptr< object::Account > graphql::taraxa::Transaction::getFrom ( std::optional< response::Value > &&  blockArg) const

◆ getGas()

response::Value graphql::taraxa::Transaction::getGas ( ) const
noexcept

◆ getGasPrice()

response::Value graphql::taraxa::Transaction::getGasPrice ( ) const
noexcept

◆ getGasUsed()

std::optional< response::Value > graphql::taraxa::Transaction::getGasUsed ( ) const
noexcept

◆ getHash()

response::Value graphql::taraxa::Transaction::getHash ( ) const
noexcept

◆ getIndex()

std::optional< int > graphql::taraxa::Transaction::getIndex ( ) const
noexcept

◆ getInputData()

response::Value graphql::taraxa::Transaction::getInputData ( ) const
noexcept

◆ getLogs()

std::optional< std::vector< std::shared_ptr< object::Log > > > graphql::taraxa::Transaction::getLogs ( ) const
noexcept

◆ getNonce()

response::Value graphql::taraxa::Transaction::getNonce ( ) const
noexcept

◆ getR()

response::Value graphql::taraxa::Transaction::getR ( ) const
noexcept

◆ getS()

response::Value graphql::taraxa::Transaction::getS ( ) const
noexcept

◆ getStatus()

std::optional< response::Value > graphql::taraxa::Transaction::getStatus ( ) const
noexcept

◆ getTo()

std::shared_ptr< object::Account > graphql::taraxa::Transaction::getTo ( std::optional< response::Value > &&  blockArg) const

◆ getV()

response::Value graphql::taraxa::Transaction::getV ( ) const
noexcept

◆ getValue()

response::Value graphql::taraxa::Transaction::getValue ( ) const
noexcept

Member Data Documentation

◆ final_chain_

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

◆ get_block_by_num_

std::function<std::shared_ptr<object::Block>::taraxa::EthBlockNumber)> graphql::taraxa::Transaction::get_block_by_num_
private

◆ location_

std::optional<::taraxa::final_chain::TransactionLocation> graphql::taraxa::Transaction::location_
mutableprivate

◆ receipt_

std::optional<::taraxa::final_chain::TransactionReceipt> graphql::taraxa::Transaction::receipt_
mutableprivate

◆ transaction_

std::shared_ptr<::taraxa::Transaction> graphql::taraxa::Transaction::transaction_
private

◆ trx_manager_

std::shared_ptr<::taraxa::TransactionManager> graphql::taraxa::Transaction::trx_manager_
private

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