Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
An output of a transaction. More...
#include <transaction.h>
Public Member Functions | |
CTxOut () | |
CTxOut (const CAmount &nValueIn, CScript scriptPubKeyIn, int nRoundsIn=-10) | |
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 |
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 144 of file transaction.h.
Constructor & Destructor Documentation
◆ CTxOut() [1/2]
|
inline |
Definition at line 151 of file transaction.h.
References SetNull().
◆ CTxOut() [2/2]
Definition at line 51 of file transaction.cpp.
References nRounds, nValue, and scriptPubKey.
Member Function Documentation
◆ IsNull()
|
inline |
◆ SerializationOp()
|
inline |
Definition at line 161 of file transaction.h.
References nValue, READWRITE, and scriptPubKey.
◆ SetNull()
|
inline |
Definition at line 166 of file transaction.h.
References CScript::clear(), nRounds, nValue, and scriptPubKey.
Referenced by Coin::Clear(), and CTxOut().
◆ ToString()
std::string CTxOut::ToString | ( | ) | const |
Definition at line 58 of file transaction.cpp.
References COIN, HexStr(), nValue, scriptPubKey, and strprintf.
Friends And Related Function Documentation
◆ operator!=
Definition at line 185 of file transaction.h.
◆ operator==
Definition at line 178 of file transaction.h.
Member Data Documentation
◆ ADD_SERIALIZE_METHODS
CTxOut::ADD_SERIALIZE_METHODS |
Definition at line 158 of file transaction.h.
◆ nRounds
int CTxOut::nRounds |
Definition at line 149 of file transaction.h.
◆ nValue
CAmount CTxOut::nValue |
Definition at line 147 of file transaction.h.
Referenced by CTxMemPool::addAddressIndex(), CTxMemPool::addSpentIndex(), CDeterministicMNManager::BuildNewListFromBlock(), CheckProRegTx(), Consensus::CheckTxInputs(), combinerawtransaction(), CChainState::ConnectBlock(), CWallet::CreateTransaction(), CTxOut(), TransactionRecord::decomposeTransaction(), CChainState::DisconnectBlock(), CWallet::FundTransaction(), CWalletTx::GetAmounts(), CWalletTx::GetAnonymizedCredit(), getblockstats(), CWallet::GetChange(), CWallet::GetCredit(), CWalletTx::GetDenominatedCredit(), CWallet::GetLegacyBalance(), getreceivedbyaccount(), getreceivedbyaddress(), gettxout(), CCoinsViewCache::GetValueIn(), CPrivateSend::IsCollateralValid(), IsDust(), IsNull(), CPrivateSendBaseSession::IsValidInOuts(), ListReceived(), MutateTxSign(), CompareValueOnly::operator()(), CompareOutputBIP69::operator()(), CScriptCheck::operator()(), CWallet::SelectCoinsMinConf(), CTxOutCompressor::SerializationOp(), SerializationOp(), SetNull(), signrawtransaction(), TransactionDesc::toHTML(), ToString(), and TxToUniv().
◆ scriptPubKey
CScript CTxOut::scriptPubKey |
Definition at line 148 of file transaction.h.
Referenced by CTxMemPool::addAddressIndex(), CTxMemPool::addSpentIndex(), CWallet::AddToWalletIfInvolvingMe(), AreInputsStandard(), CheckProRegTx(), CheckProUpRegTx(), combinerawtransaction(), CChainState::ConnectBlock(), CTxOut(), TransactionRecord::decomposeTransaction(), CChainState::DisconnectBlock(), Coin::DynamicMemoryUsage(), CWallet::FundTransaction(), CWallet::GetAccountDestination(), CWallet::GetAddressGroupings(), CWalletTx::GetAmounts(), GetDustThreshold(), CWallet::GetKeyBirthTimes(), CWallet::GetLegacyBalance(), GetP2SHSigOpCount(), getreceivedbyaccount(), getreceivedbyaddress(), gettxout(), CWallet::IsChange(), CWallet::IsMine(), CBloomFilter::IsRelevantAndUpdate(), IsStandardTx(), CWallet::ListCoins(), ListReceived(), masternodelist(), MutateTxSign(), CompareOutputBIP69::operator()(), CScriptCheck::operator()(), RecursiveDynamicUsage(), CTxOutCompressor::SerializationOp(), SerializationOp(), SetNull(), signrawtransaction(), TransactionDesc::toHTML(), CDeterministicMN::ToJson(), ToString(), TxToUniv(), and MasternodeList::updateDIP3List().
The documentation for this class was generated from the following files:
- src/primitives/transaction.h
- src/primitives/transaction.cpp