[#btck_script_pubkey_copy] = btck_script_pubkey_copy :mrdocs: Copy a script pubkey. == Synopsis Declared in `<kernel/bitcoinkernel.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard, __nonnull__]] xref:btck_ScriptPubkey-0e.adoc[btck_ScriptPubkey]* btck_script_pubkey_copy(xref:btck_ScriptPubkey-0e.adoc[btck_ScriptPubkey] const* script_pubkey); ---- == Return Value The copied script pubkey. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *script_pubkey* [in] | Non‐null. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#