[#btck_transaction_output_get_script_pubkey]
= btck&lowbar;transaction&lowbar;output&lowbar;get&lowbar;script&lowbar;pubkey
:mrdocs:

Get the script pubkey of the output&period; The returned script pubkey is not owned and depends on the lifetime of the transaction output&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;&lowbar;&lowbar;nonnull&lowbar;&lowbar;&rsqb;&rsqb;
xref:btck_ScriptPubkey-0e.adoc[btck&lowbar;ScriptPubkey] const*
btck&lowbar;transaction&lowbar;output&lowbar;get&lowbar;script&lowbar;pubkey(xref:btck_TransactionOutput-0d.adoc[btck&lowbar;TransactionOutput] const* transaction&lowbar;output);
----

== Return Value

The script pubkey&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *transaction&lowbar;output* [in]
| Non&hyphen;null&period;
|===


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