btck::TransactionOutput::TransactionOutput

Constructs an output from a script pubkey and amount.

Synopsis

Declared in <kernel/bitcoinkernel_wrapper.h>

explicit
TransactionOutput(
    ScriptPubkey const& script_pubkey,
    int64_t amount);

Parameters

NameDescription
script_pubkeyThe output's locking script.
amountThe output value in satoshis.