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);

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);

Return Value

True if every input was signed successfully.

Parameters

Name

Description

mtx

The transaction to‐be‐signed

keystore

Temporary keystore containing signing keys

coins

Map of unspent outputs

hashType

The signature hash type

result

JSON object where signed transaction results accumulate

provider

The source of keys and scripts used to sign.

options

Options controlling how each input is signed.

input_errors

Filled with per‐input signing errors, keyed by index.

Created with MrDocs