btck_script_pubkey_create

Create a script pubkey from serialized data.

Synopsis

Declared in <kernel/bitcoinkernel.h>

[[nodiscard]]
btck_ScriptPubkey*
btck_script_pubkey_create(
    void const* script_pubkey,
    size_t script_pubkey_len);

Return Value

The script pubkey.

NOTE

The return value should not be discarded.

Parameters

NameDescription
script_pubkey [in]Serialized script pubkey.
script_pubkey_len [in]Length of the script pubkey data.