wallet::CWallet::SignTransaction

SignTransaction overloads

Synopses

Declared in <wallet/wallet.h>

Fetch the inputs and sign with SIGHASH_ALL.

[[requires_capability(0x7ff3720f0048), requires_capability(0x7ff365f20048), requires_capability(0x7ff35de5e9f8), requires_capability(0x7ff35efe34d8), requires_capability(0x7ff366fcfab8)]]
bool
SignTransaction(CMutableTransaction& tx) const;
» more...

Sign the tx given the input coins and sighash.

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

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.