Dash Core  0.12.2.1
P2P Digital Currency
CTxOut Class Reference

#include <transaction.h>

+ Inheritance diagram for CTxOut:

Public Member Functions

 CTxOut ()
 
 CTxOut (const CAmount &nValueIn, CScript scriptPubKeyIn)
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 
void SetNull ()
 
bool IsNull () const
 
uint256 GetHash () const
 
CAmount GetDustThreshold (const CFeeRate &minRelayTxFee) const
 
bool IsDust (const CFeeRate &minRelayTxFee) const
 
std::string ToString () const
 

Public Attributes

CAmount nValue
 
CScript scriptPubKey
 
int nRounds
 
 ADD_SERIALIZE_METHODS
 

Friends

bool operator== (const CTxOut &a, const CTxOut &b)
 
bool operator!= (const CTxOut &a, const CTxOut &b)
 

Detailed Description

An output of a transaction. It contains the public key that the next input must be able to sign with to claim it.

Definition at line 133 of file transaction.h.

Constructor & Destructor Documentation

◆ CTxOut() [1/2]

CTxOut::CTxOut ( )
inline

Definition at line 140 of file transaction.h.

◆ CTxOut() [2/2]

CTxOut::CTxOut ( const CAmount nValueIn,
CScript  scriptPubKeyIn 
)

Definition at line 51 of file transaction.cpp.

Member Function Documentation

◆ GetDustThreshold()

CAmount CTxOut::GetDustThreshold ( const CFeeRate minRelayTxFee) const
inline

◆ GetHash()

uint256 CTxOut::GetHash ( ) const

Definition at line 58 of file transaction.cpp.

◆ IsDust()

bool CTxOut::IsDust ( const CFeeRate minRelayTxFee) const
inline

◆ IsNull()

bool CTxOut::IsNull ( ) const
inline

Definition at line 162 of file transaction.h.

Referenced by rest_getutxos().

◆ SerializationOp()

template<typename Stream , typename Operation >
void CTxOut::SerializationOp ( Stream &  s,
Operation  ser_action,
int  nType,
int  nVersion 
)
inline

Definition at line 150 of file transaction.h.

◆ SetNull()

void CTxOut::SetNull ( )
inline

Definition at line 155 of file transaction.h.

Referenced by CCoins::ClearUnspendable(), and CTxOut().

◆ ToString()

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const CTxOut a,
const CTxOut b 
)
friend

Definition at line 197 of file transaction.h.

◆ operator==

bool operator== ( const CTxOut a,
const CTxOut b 
)
friend

Definition at line 190 of file transaction.h.

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CTxOut::ADD_SERIALIZE_METHODS

Definition at line 147 of file transaction.h.

◆ nRounds

int CTxOut::nRounds

Definition at line 138 of file transaction.h.

Referenced by CTxOut(), and SetNull().

◆ nValue

◆ scriptPubKey


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