SignTransaction

Sign a transaction with the given keystore and previous transactions

Synopsis

Declared in <rpc/rawtransaction_util.h>

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

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