Constructs an output with a given value and spending script.

Synopsis

Declared in <primitives/transaction.h>

CTxOut(
    CAmount const& nValueIn,
    CScript scriptPubKeyIn);

Parameters

Name

Description

nValueIn

The amount carried by the output.

scriptPubKeyIn

The script defining the spending conditions.

Created with MrDocs