[#btck-TransactionOutput-2constructor-07f]
= xref:btck.adoc[btck]::xref:btck/TransactionOutput.adoc[TransactionOutput]::TransactionOutput
:relfileprefix: ../../
:mrdocs:

Constructors

== Synopses

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

Constructs an owning copy from a view&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:btck/TransactionOutput/2constructor-070.adoc[TransactionOutput](xref:btck/TransactionOutputView.adoc[TransactionOutputView] const& view);
----

[.small]#xref:btck/TransactionOutput/2constructor-070.adoc[_» more&period;&period;&period;_]#

Constructs an output from a script pubkey and amount&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:btck/TransactionOutput/2constructor-09.adoc[TransactionOutput](
    xref:btck/ScriptPubkey.adoc[ScriptPubkey] const& script&lowbar;pubkey,
    int64&lowbar;t amount);
----

[.small]#xref:btck/TransactionOutput/2constructor-09.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *view*
| The view to copy&period;
| *script&lowbar;pubkey*
| The output&apos;s locking script&period;
| *amount*
| The output value in satoshis&period;
|===


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