Monero C++ Library
Loading...
Searching...
No Matches
monero::monero_tx Struct Reference

#include <monero_daemon_model.h>

Inheritance diagram for monero::monero_tx:
monero::serializable_struct monero::monero_tx_wallet monero::monero_tx_query

Public Member Functions

rapidjson::Value to_rapidjson_val (rapidjson::Document::AllocatorType &allocator) const
 
std::shared_ptr< monero_txcopy (const std::shared_ptr< monero_tx > &src, const std::shared_ptr< monero_tx > &tgt) const
 
virtual void merge (const std::shared_ptr< monero_tx > &self, const std::shared_ptr< monero_tx > &other)
 
boost::optional< uint64_t > get_height () const
 
- Public Member Functions inherited from monero::serializable_struct
std::string serialize () const
 

Static Public Member Functions

static void from_property_tree (const boost::property_tree::ptree &node, std::shared_ptr< monero_tx > tx)
 

Public Attributes

boost::optional< std::shared_ptr< monero_block > > m_block
 
boost::optional< std::string > m_hash
 
boost::optional< uint32_t > m_version
 
boost::optional< bool > m_is_miner_tx
 
boost::optional< std::string > m_payment_id
 
boost::optional< uint64_t > m_fee
 
boost::optional< uint32_t > m_ring_size
 
boost::optional< bool > m_relay
 
boost::optional< bool > m_is_relayed
 
boost::optional< bool > m_is_confirmed
 
boost::optional< bool > m_in_tx_pool
 
boost::optional< uint64_t > m_num_confirmations
 
boost::optional< uint64_t > m_unlock_time
 
boost::optional< uint64_t > m_last_relayed_timestamp
 
boost::optional< uint64_t > m_received_timestamp
 
boost::optional< bool > m_is_double_spend_seen
 
boost::optional< std::string > m_key
 
boost::optional< std::string > m_full_hex
 
boost::optional< std::string > m_pruned_hex
 
boost::optional< std::string > m_prunable_hex
 
boost::optional< std::string > m_prunable_hash
 
boost::optional< uint64_t > m_size
 
boost::optional< uint64_t > m_weight
 
std::vector< std::shared_ptr< monero_output > > m_inputs
 
std::vector< std::shared_ptr< monero_output > > m_outputs
 
std::vector< uint64_t > m_output_indices
 
boost::optional< std::string > m_metadata
 
boost::optional< std::string > m_common_tx_sets
 
std::vector< uint8_t > m_extra
 
boost::optional< std::string > m_rct_signatures
 
boost::optional< std::string > m_rct_sig_prunable
 
boost::optional< bool > m_is_kept_by_block
 
boost::optional< bool > m_is_failed
 
boost::optional< uint64_t > m_last_failed_height
 
boost::optional< std::string > m_last_failed_hash
 
boost::optional< uint64_t > m_max_used_block_height
 
boost::optional< std::string > m_max_used_block_hash
 
std::vector< std::string > m_signatures
 

Static Public Attributes

static const std::string DEFAULT_PAYMENT_ID = std::string("0000000000000000")
 

Detailed Description

Models a Monero transaction on the blockchain.

Member Function Documentation

◆ to_rapidjson_val()

rapidjson::Value monero::monero_tx::to_rapidjson_val ( rapidjson::Document::AllocatorType & allocator) const
virtual

Converts the struct to a rapidjson Value.

Parameters
allocatoris the rapidjson document allocator
Returns
the struct as a rapidjson Value

Implements monero::serializable_struct.

Reimplemented in monero::monero_tx_query, and monero::monero_tx_wallet.


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