Bitcoin
Public Member Functions | Public Attributes | Friends | List of all members
CTxOut Class Reference

#include <transaction.h>

Public Member Functions

 CTxOut ()
 
 CTxOut (const CAmount &nValueIn, CScript scriptPubKeyIn)
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action)
 
void SetNull ()
 
bool IsNull () const
 
std::string ToString () const
 

Public Attributes

CAmount nValue
 
CScript scriptPubKey
 
 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.

Constructor & Destructor Documentation

◆ CTxOut() [1/2]

CTxOut::CTxOut ( )
inline

◆ CTxOut() [2/2]

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

Member Function Documentation

◆ IsNull()

bool CTxOut::IsNull ( ) const
inline

◆ SerializationOp()

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

◆ SetNull()

void CTxOut::SetNull ( )
inline

◆ ToString()

std::string CTxOut::ToString ( ) const

Friends And Related Function Documentation

◆ operator!=

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

◆ operator==

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

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CTxOut::ADD_SERIALIZE_METHODS

◆ nValue

CAmount CTxOut::nValue

◆ scriptPubKey

CScript CTxOut::scriptPubKey

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