wallet::CWallet::SignTransaction

Sign the tx given the input coins and sighash.

Synopsis

Declared in <wallet/wallet.h>

bool
SignTransaction(
    CMutableTransaction& tx,
    std::map<COutPoint, Coin> const& coins,
    int sighash,
    std::map<int, bilingual_str>& input_errors) const;

Return Value

true if all inputs were signed.

Parameters

NameDescription
txThe transaction to sign in place.
coinsThe input coins spent by the transaction.
sighashThe signature hash type to use.
input_errorsSet to per-input error messages for inputs that fail.