[#CTxOut]
= CTxOut
:mrdocs:

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

== Synopsis

Declared in `&lt;primitives&sol;transaction&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class CTxOut;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:CTxOut/2constructor-0a.adoc[`CTxOut`]         [.small]#[constructor]#
| Constructors
| xref:CTxOut/IsNull.adoc[`IsNull`] 
| Returns true when the output holds no value&period;
| xref:CTxOut/SetNull.adoc[`SetNull`] 
| Resets the output to its null state&period;
| xref:CTxOut/ToString.adoc[`ToString`] 
| Returns a human&hyphen;readable description of the output&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:CTxOut/nValue.adoc[`nValue`] 
| Amount of value carried by this output, in satoshis&period;
| xref:CTxOut/scriptPubKey.adoc[`scriptPubKey`] 
| Script defining the conditions required to spend this output&period;
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `xref:operator_eq-0ee.adoc[operator&equals;&equals;]`
| Compares two outputs for equality&period;
|===

== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:GetDustThreshold.adoc[`GetDustThreshold`]
| Compute the minimum output value below which an output is considered dust&period;
| xref:IsDust.adoc[`IsDust`]
| Test whether an output is dust at the given relay fee rate&period;
| xref:wallet/CalculateMaximumSignedInputSize-0c.adoc[`wallet&colon;&colon;CalculateMaximumSignedInputSize`]
| Get the marginal bytes if spending the specified output from this transaction&period; Use CoinControl to determine whether to expect signature grinding when calculating the size of the input spend&period;
| xref:wallet/CalculateMaximumSignedInputSize-0f.adoc[`wallet&colon;&colon;CalculateMaximumSignedInputSize`]
| Get the marginal bytes if spending the specified output, using an explicit signing provider&period;
| xref:wallet/FindNonChangeParentOutput.adoc[`wallet&colon;&colon;FindNonChangeParentOutput`]
| Find non&hyphen;change parent output&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
