[#btck-Transaction]
= xref:btck.adoc[btck]::Transaction
:relfileprefix: ../
:mrdocs:

Owning wrapper over a `btck&lowbar;Transaction`&period;

== Synopsis

Declared in `&lt;kernel&sol;bitcoinkernel&lowbar;wrapper&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class Transaction
    : public xref:btck/Handle-046.adoc[Handle&lt;btck&lowbar;Transaction, btck&lowbar;transaction&lowbar;copy, btck&lowbar;transaction&lowbar;destroy&gt;]
    , public xref:btck/TransactionApi-08.adoc[TransactionApi&lt;Transaction&gt;]
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:btck/Handle-046.adoc[Handle&lt;btck&lowbar;Transaction, btck&lowbar;transaction&lowbar;copy, btck&lowbar;transaction&lowbar;destroy&gt;]`
| Owning RAII handle for a copyable C object of type `CType&period;`
| `xref:btck/TransactionApi-08.adoc[TransactionApi&lt;Transaction&gt;]`
| CRTP mixin adding transaction accessors shared by the view and owning types&period;
|===

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:btck/Transaction/2constructor-05.adoc[`Transaction`]         [.small]#[constructor]#
| Constructors
| xref:btck/Transaction/operator_assign-04.adoc[`operator&equals;`] 
| Assignment operators
| xref:btck/Transaction/CountInputs.adoc[`CountInputs`] 
| Returns the number of inputs&period;
| xref:btck/Transaction/CountOutputs.adoc[`CountOutputs`] 
| Returns the number of outputs&period;
| xref:btck/Transaction/GetInput.adoc[`GetInput`] 
| Returns a single input by index&period;
| xref:btck/Transaction/GetLocktime.adoc[`GetLocktime`] 
| Returns the transaction locktime&period;
| xref:btck/Transaction/GetOutput.adoc[`GetOutput`] 
| Returns a single output by index&period;
| xref:btck/Transaction/Inputs-04.adoc[`Inputs`] 
| 
| xref:btck/Transaction/Outputs-0a.adoc[`Outputs`] 
| 
| xref:btck/Transaction/ToBytes.adoc[`ToBytes`] 
| Serializes the transaction to its raw bytes&period;
| xref:btck/Transaction/Txid.adoc[`Txid`] 
| Returns the transaction id&period;
| xref:btck/Transaction/get-04.adoc[`get`] 
| Returns the owned C handle&period;
|===


== Protected Data Members

[cols="1,4"]
|===
| Name| Description
| xref:btck/Transaction/m_ptr.adoc[`m&lowbar;ptr`] 
| The owned C handle&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:btck/CheckTransaction.adoc[`CheckTransaction`]
| Runs consensus&hyphen;level checks on a standalone transaction&period;
|===


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