btck::ScriptPubkeyView::ToBytes

Serializes the script pubkey to its raw bytes.

Synopsis

Declared in <kernel/bitcoinkernel_wrapper.h>

std::vector<std::byte>
ToBytes() const;

Return Value

The serialized script bytes.