SignTransaction

SignTransaction overloads

Synopses

Declared in <rpc/rawtransaction_util.h>

Sign a transaction with the given keystore and previous transactions

void
SignTransaction(
    CMutableTransaction& mtx,
    SigningProvider const* keystore,
    std::map<COutPoint, Coin> const& coins,
    UniValue const& hashType,
    UniValue& result);
» more...

Sign the CMutableTransaction

bool
SignTransaction(
    CMutableTransaction& mtx,
    SigningProvider const* provider,
    std::map<COutPoint, Coin> const& coins,
    SignOptions const& options,
    std::map<int, bilingual_str>& input_errors);
» more...

Return Value

True if every input was signed successfully.

Parameters

NameDescription
mtxThe transaction to-be-signed
keystoreTemporary keystore containing signing keys
coinsMap of unspent outputs
hashTypeThe signature hash type
resultJSON object where signed transaction results accumulate
providerThe source of keys and scripts used to sign.
optionsOptions controlling how each input is signed.
input_errorsFilled with per-input signing errors, keyed by index.