SignTransactionResultToJSON

Encode the outcome of a signing attempt as a JSON object

Synopsis

Declared in <rpc/rawtransaction_util.h>

void
SignTransactionResultToJSON(
    CMutableTransaction& mtx,
    bool complete,
    std::map<COutPoint, Coin> const& coins,
    std::map<int, bilingual_str> const& input_errors,
    UniValue& result);

Parameters

NameDescription
mtxThe transaction that was signed.
completeWhether every input now has a complete signature.
coinsMap of outputs spent by the transaction.
input_errorsPer-input signing errors keyed by input index.
resultJSON object the signing results are written into.