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

Non&hyphen;owning view 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 TransactionView
    : public xref:btck/View-041.adoc[View&lt;btck&lowbar;Transaction&gt;]
    , public xref:btck/TransactionApi-08.adoc[TransactionApi&lt;TransactionView&gt;]
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:btck/View-041.adoc[View&lt;btck&lowbar;Transaction&gt;]`
| Non&hyphen;owning view over a const C handle of type `CType&period;`
| `xref:btck/TransactionApi-08.adoc[TransactionApi&lt;TransactionView&gt;]`
| CRTP mixin adding transaction accessors shared by the view and owning types&period;
|===

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:btck/TransactionView/2constructor.adoc[`TransactionView`]         [.small]#[constructor]#
| Constructs a view over `ptr&period;`
| xref:btck/TransactionView/CountInputs.adoc[`CountInputs`] 
| Returns the number of inputs&period;
| xref:btck/TransactionView/CountOutputs.adoc[`CountOutputs`] 
| Returns the number of outputs&period;
| xref:btck/TransactionView/GetInput.adoc[`GetInput`] 
| Returns a single input by index&period;
| xref:btck/TransactionView/GetLocktime.adoc[`GetLocktime`] 
| Returns the transaction locktime&period;
| xref:btck/TransactionView/GetOutput.adoc[`GetOutput`] 
| Returns a single output by index&period;
| xref:btck/TransactionView/Inputs-03.adoc[`Inputs`] 
| 
| xref:btck/TransactionView/Outputs-0d.adoc[`Outputs`] 
| 
| xref:btck/TransactionView/ToBytes.adoc[`ToBytes`] 
| Serializes the transaction to its raw bytes&period;
| xref:btck/TransactionView/Txid.adoc[`Txid`] 
| Returns the transaction id&period;
| xref:btck/TransactionView/get.adoc[`get`] 
| Returns the borrowed C handle&period;
|===


== Protected Data Members

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



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