[#btck_transaction_input_get_script_sig]
= btck&lowbar;transaction&lowbar;input&lowbar;get&lowbar;script&lowbar;sig
:mrdocs:

Serialize the script sig of a transaction input through the passed in callback&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard, &lowbar;&lowbar;nonnull&lowbar;&lowbar;&rsqb;&rsqb;
int
btck&lowbar;transaction&lowbar;input&lowbar;get&lowbar;script&lowbar;sig(
    xref:btck_TransactionInput-01.adoc[btck&lowbar;TransactionInput] const* transaction&lowbar;input,
    xref:btck_WriteBytes.adoc[btck&lowbar;WriteBytes] writer,
    void* user&lowbar;data);
----

== Return Value

The return value of the writer&period;

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *transaction&lowbar;input* [in]
| Non&hyphen;null&period;
| *writer* [in]
| Non&hyphen;null, function pointer for writing bytes&period;
| *user&lowbar;data* [in]
| Nullable, passed back through the writer callback&period;
|===


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