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

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

== Synopsis

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

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *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]#
