wallet::CreatedTransactionResult::CreatedTransactionResult

Construct a result from the transaction, its fee, the change output position, and the fee reason.

Synopsis

Declared in <wallet/types.h>

CreatedTransactionResult(
    CTransactionRef _tx,
    CAmount _fee,
    std::optional<unsigned int> _change_pos,
    FeeReason _fee_reason);

Parameters

NameDescription
_txThe newly created transaction.
_feeThe fee paid by the transaction.
_change_posPosition of the change output in the transaction, if any.
_fee_reasonThe reason the transaction's fee rate was chosen.