btck::ScriptPubkey::ScriptPubkey

Constructors

Synopses

Declared in <kernel/bitcoinkernel_wrapper.h>

Constructs a script pubkey from its raw serialized bytes.

explicit
ScriptPubkey(std::span<std::byte const> raw);
» more...

Constructs an owning copy from a view.

ScriptPubkey(ScriptPubkeyView const& view);
» more...

Parameters

NameDescription
rawThe serialized script bytes.
viewThe view to copy.