Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
data::TransactionAndMetadata Struct Reference

Represents a transaction and its metadata bundled together. More...

#include <Types.hpp>

Public Member Functions

 TransactionAndMetadata (Blob transaction, Blob metadata, std::uint32_t ledgerSequence, std::uint32_t date)
 Construct a new Transaction And Metadata object.
 
 TransactionAndMetadata (std::tuple< Blob, Blob, std::uint32_t, std::uint32_t > data)
 Construct a new Transaction And Metadata object.
 
bool operator== (TransactionAndMetadata const &other) const
 Check if the transaction and metadata are the same as another.
 

Public Attributes

Blob transaction
 
Blob metadata
 
std::uint32_t ledgerSequence = 0
 
std::uint32_t date = 0
 

Detailed Description

Represents a transaction and its metadata bundled together.

Constructor & Destructor Documentation

◆ TransactionAndMetadata() [1/2]

data::TransactionAndMetadata::TransactionAndMetadata ( Blob transaction,
Blob metadata,
std::uint32_t ledgerSequence,
std::uint32_t date )
inline

Construct a new Transaction And Metadata object.

Parameters
transactionThe transaction
metadataThe metadata
ledgerSequenceThe ledger sequence
dateThe date

◆ TransactionAndMetadata() [2/2]

data::TransactionAndMetadata::TransactionAndMetadata ( std::tuple< Blob, Blob, std::uint32_t, std::uint32_t > data)
inline

Construct a new Transaction And Metadata object.

Parameters
dataThe data to construct from

Member Function Documentation

◆ operator==()

bool data::TransactionAndMetadata::operator== ( TransactionAndMetadata const & other) const
inline

Check if the transaction and metadata are the same as another.

Parameters
otherThe other transaction and metadata
Returns
true if they are the same; false otherwise

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