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

Name

Description

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

Name

Description

nValue

Amount of value carried by this output, in satoshis.

scriptPubKey

Script defining the conditions required to spend this output.

Friends

Name

Description

operator==

Compares two outputs for equality.

Non-Member Functions

Name

Description

GetDustThreshold

Compute the minimum output value below which an output is considered dust.

IsDust

Test whether an output is dust at the given relay fee rate.

wallet::CalculateMaximumSignedInputSize

Get 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::CalculateMaximumSignedInputSize

Get the marginal bytes if spending the specified output, using an explicit signing provider.

wallet::FindNonChangeParentOutput

Find non‐change parent output.

Created with MrDocs