CTxOut

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

Synopsis

Declared in <primitives/transaction.h>

class CTxOut;

Member Functions

NameDescription
CTxOut [constructor]Constructors
IsNull Returns true when the output holds no value.
SetNull Resets the output to its null state.
ToString Returns a human-readable description of the output.

Data Members

NameDescription
nValue Amount of value carried by this output, in satoshis.
scriptPubKey Script defining the conditions required to spend this output.

Friends

NameDescription
operator==Compares two outputs for equality.

Non-Member Functions

NameDescription
GetDustThresholdCompute the minimum output value below which an output is considered dust.
IsDustTest whether an output is dust at the given relay fee rate.
wallet::CalculateMaximumSignedInputSizeGet the marginal bytes if spending the specified output from this transaction. Use CoinControl to determine whether to expect signature grinding when calculating the size of the input spend.
wallet::CalculateMaximumSignedInputSizeGet the marginal bytes if spending the specified output, using an explicit signing provider.
wallet::FindNonChangeParentOutputFind non-change parent output.